Add missing initialization in constructor. 27/113627/4 accepted/tizen/3.0/common/20170216.151308 accepted/tizen/3.0/ivi/20170216.022610 accepted/tizen/3.0/mobile/20170216.022411 accepted/tizen/3.0/tv/20170216.022533 accepted/tizen/3.0/wearable/20170216.022555 accepted/tizen/common/20170215.170821 accepted/tizen/ivi/20170215.085643 accepted/tizen/mobile/20170215.085525 accepted/tizen/tv/20170215.085555 accepted/tizen/unified/20170309.033539 accepted/tizen/wearable/20170215.085618 submit/tizen/20170215.023110 submit/tizen_3.0/20170215.023044 submit/tizen_unified/20170308.100409
authorjin-gyu.kim <jin-gyu.kim@samsung.com>
Wed, 8 Feb 2017 08:06:28 +0000 (17:06 +0900)
committerJin-gyu Kim <jin-gyu.kim@samsung.com>
Tue, 14 Feb 2017 09:07:47 +0000 (01:07 -0800)
All member variables need to be set as the default value for the safe use.
Therefore, initialize 'processedPacket' in constructor as nullptr.

Change-Id: Ifa4c4695e764b29b0f070e7b745333da655f4c41

src/nether_Netlink.cpp

index 8a1f592..a0ef40a 100644 (file)
@@ -25,7 +25,7 @@
 #include "nether_Netlink.h"
 
 NetherNetlink::NetherNetlink(NetherConfig &netherConfig)
-       : NetherPacketProcessor(netherConfig), queueHandle(nullptr), nfqHandle(nullptr), nlif(nullptr), queue(netherConfig.queueNumber)
+       : NetherPacketProcessor(netherConfig), processedPacket(nullptr), queueHandle(nullptr), nfqHandle(nullptr), nlif(nullptr), queue(netherConfig.queueNumber)
 {
 }