projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix json_object_from_file return value handling
[project/procd.git]
/
hotplug-rule.c
diff --git
a/hotplug-rule.c
b/hotplug-rule.c
index
b90ae52
..
cb31c3f
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)) {