X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=hotplug-rule.c;fp=hotplug-rule.c;h=cb31c3f61301a2eb74c702ab9935989921ec078d;hp=b90ae5238c0978adbe0f38e77abec2efb1c585c1;hb=17d2e4f47b29692d26c243a8d05987e5e5f53b43;hpb=9f81efba3e70526d7ad15510192ad42b968240c8 diff --git a/hotplug-rule.c b/hotplug-rule.c index b90ae52..cb31c3f 100644 --- a/hotplug-rule.c +++ b/hotplug-rule.c @@ -467,7 +467,7 @@ rule_file_load(const char *filename) return NULL; obj = json_object_from_file((char *) filename); - if (!obj) + if (is_error(obj)) return NULL; if (!json_object_is_type(obj, json_type_array)) {