projects
/
oweals
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f81efb
)
fix json_object_from_file return value handling
author
John Crispin
<blogic@openwrt.org>
Sat, 23 Feb 2013 18:23:01 +0000
(19:23 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 23 Feb 2013 18:28:10 +0000
(19:28 +0100)
Signed-off-by: John Crispin <blogic@openwrt.org>
hotplug-rule.c
patch
|
blob
|
history
diff --git
a/hotplug-rule.c
b/hotplug-rule.c
index b90ae5238c0978adbe0f38e77abec2efb1c585c1..cb31c3f61301a2eb74c702ab9935989921ec078d 100644
(file)
--- 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)) {