From: sungwook79.park Date: Tue, 13 Mar 2018 08:10:55 +0000 (+0900) Subject: Fix issue detected by static analysis tool X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11efaac8bfd69ab52472ceef4c8df5f31d918d66;p=platform%2Fcore%2Fuifw%2Fsmartreply.git Fix issue detected by static analysis tool Change-Id: I1235afc5f7d8525043559f247cd4a1cea3f0dfc4 Signed-off-by: sungwook79.park --- diff --git a/src/json.cpp b/src/json.cpp index c4b8f50..eff6ba6 100755 --- a/src/json.cpp +++ b/src/json.cpp @@ -65,6 +65,7 @@ smr::json::json(const json& j) smr::json::json(const char* s) { + json_node = NULL; if (s) { parse(s); } else { @@ -74,6 +75,7 @@ smr::json::json(const char* s) smr::json::json(const std::string& s) { + json_node = NULL; if (s.empty()) { parse(EMPTY_JSON_OBJECT); } else {