summaryrefslogtreecommitdiff
path: root/handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'handler.c')
-rw-r--r--handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/handler.c b/handler.c
index f81a7c5..155eab0 100644
--- 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 (!json_object_is_type(obj, json_type_null)) {
netifd_init_script_handler(name, obj, cb);
json_object_put(obj);
json_tokener_free(tok);