From: YounghyunJoo Date: Fri, 17 Jul 2015 08:56:19 +0000 (+0900) Subject: Modify the DataCache.cpp file for initialization issue X-Git-Tag: 1.2.0+RC1~1430^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c8675eb245321cf7e4087941334da9cf74891b38;p=platform%2Fupstream%2Fiotivity.git Modify the DataCache.cpp file for initialization issue initialize networkTimeOutHandle, pollingHandle value Change-Id: I773552b8e15a59c6209c6be047476b72b61db19e Signed-off-by: YounghyunJoo Reviewed-on: https://gerrit.iotivity.org/gerrit/1714 Reviewed-by: Uze Choi Tested-by: Uze Choi --- diff --git a/service/resource-manipulation/src/resourceCache/src/DataCache.cpp b/service/resource-manipulation/src/resourceCache/src/DataCache.cpp index b48c4b5..cf4147f 100755 --- a/service/resource-manipulation/src/resourceCache/src/DataCache.cpp +++ b/service/resource-manipulation/src/resourceCache/src/DataCache.cpp @@ -43,6 +43,9 @@ namespace OIC state = CACHE_STATE::READY_YET; + networkTimeOutHandle = 0; + pollingHandle = 0; + pObserveCB = (ObserveCB)(std::bind(&DataCache::onObserve, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4));