[IOT-1686] InProcServerWrapper/InProcClientWrapper Initialization.
authorLarry Sachs <larry.j.sachs@intel.com>
Thu, 15 Dec 2016 20:30:32 +0000 (12:30 -0800)
committerRick Bell <richard.s.bell@intel.com>
Fri, 16 Dec 2016 17:44:32 +0000 (17:44 +0000)
With the change https://gerrit.iotivity.org/gerrit/#/c/13649/
m_threadRun must be explicitly initialized.

Change-Id: Ic40d9a56e4fac7ec520b522c2a8c559b5b72627d
Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15721
Reviewed-by: George Nash <george.nash@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
resource/src/InProcServerWrapper.cpp

index 43a926b..391fc23 100644 (file)
@@ -257,7 +257,7 @@ namespace OC
 {
     InProcServerWrapper::InProcServerWrapper(
         std::weak_ptr<std::recursive_mutex> csdkLock, PlatformConfig cfg)
-     : m_csdkLock(csdkLock),
+     : m_threadRun(false), m_csdkLock(csdkLock),
        m_cfg { cfg }
     {
         start();