netifd: Fix compilation with gcc 6.4

This commit is contained in:
jbnadal
2018-10-25 15:37:42 +02:00
parent d2faad6b6d
commit 8006ef2712

View File

@@ -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);