From 1562123664c15a6b9359c0b5756bf8e8a26402a0 Mon Sep 17 00:00:00 2001 From: "sungwook79.park" Date: Tue, 13 Mar 2018 17:10:55 +0900 Subject: [PATCH] Fix issue detected by static analysis tool Change-Id: I1235afc5f7d8525043559f247cd4a1cea3f0dfc4 Signed-off-by: sungwook79.park --- src/json.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.34.1