projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
handler: replace is_error() helper with NULL check
[project/netifd.git]
/
handler.c
diff --git
a/handler.c
b/handler.c
index
0c4627f
..
a0b2a57
100644
(file)
--- a/
handler.c
+++ b/
handler.c
@@
-105,7
+105,7
@@
netifd_parse_script_handler(const char *name, script_dump_cb cb)
tok = json_tokener_new();
obj = json_tokener_parse_ex(tok, start, len);
- if (
!is_error(obj)
) {
+ if (
obj
) {
netifd_init_script_handler(name, obj, cb);
json_object_put(obj);
json_tokener_free(tok);