Modified for Svace Issue (UNIT.CTOR.MIGIT/UNITIT.LOCAL_VAR.EX) 78/123578/2
authorSegwon <segwon.han@samsung.com>
Thu, 6 Apr 2017 07:14:45 +0000 (16:14 +0900)
committerSegwon <segwon.han@samsung.com>
Thu, 6 Apr 2017 07:30:55 +0000 (16:30 +0900)
Issue : Value is not initialize.

Signed-off-by: Segwon <segwon.han@samsung.com>
Change-Id: Iaad280d004c184c2dc3637361671271ad02a094a

daemon/access_control/ACLManager.cpp
lib/conv_lib_json.cpp

index 279dfb8..da12683 100644 (file)
@@ -78,7 +78,7 @@ static void LaunchPasskeyInputPopupCallback(app_control_h request, app_control_h
        usercallback_info *info = (usercallback_info *)user_data;
 
        int result = -1;
-       char *passkey;
+       char *passkey = NULL;
 
        char *reply_message;
        app_control_get_extra_data(reply, "REPLY_MESSAGE", &reply_message);
index 9447ec0..61b4813 100755 (executable)
@@ -49,6 +49,8 @@ static std::string double_to_string(double in, int prec)
 
 json::json()
 {
+       json_node = NULL;
+
        JsonObject *obj = json_object_new();
        IF_FAIL_VOID_TAG(obj, _E, "Json object construction failed");