projects
/
apps
/
native
/
tizen-things-daemon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Parse json cmd returns as success if nothing in the command json
[apps/native/tizen-things-daemon.git]
/
daemon
/
src
/
ttd-parse-cmd.c
diff --git
a/daemon/src/ttd-parse-cmd.c
b/daemon/src/ttd-parse-cmd.c
index
6a51ccc
..
4778e31
100644
(file)
--- a/
daemon/src/ttd-parse-cmd.c
+++ b/
daemon/src/ttd-parse-cmd.c
@@
-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++) {