Parse json cmd returns as success if nothing in the command json
[apps/native/tizen-things-daemon.git] / daemon / src / ttd-parse-cmd.c
index 6a51ccc..4778e31 100644 (file)
@@ -263,9 +263,9 @@ int ttd_parse_json_to_cmd(const char *json_str, GList **cmd_list)
 
        cmd_length = json_object_array_length(items_obj);
        if (cmd_length <= 0) {
-               _E("Nothing in the cmd array");
+               _W("Nothing in the cmd array");
                json_object_put(root_obj);
-               return -1;
+               return 0;
        }
 
        for (i = 0; i < cmd_length; i++) {