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:
ac51761
)
hotplug: avoid using the deprecated is_error() call, check for NULL pointer instead
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 29 Aug 2014 11:25:17 +0000
(13:25 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 29 Aug 2014 11:25:17 +0000
(13:25 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
plug/hotplug.c
patch
|
blob
|
history
diff --git
a/plug/hotplug.c
b/plug/hotplug.c
index 6f65c176e6f99493957c29dd655577c470a3e031..061833a887449f4b541219b97cc8a7afc4b26570 100644
(file)
--- a/
plug/hotplug.c
+++ b/
plug/hotplug.c
@@
-336,7
+336,7
@@
rule_handle_file(struct json_script_ctx *ctx, const char *name)
json_object *obj;
obj = json_object_from_file((char*)name);
- if (
is_error(obj)
)
+ if (
!obj
)
return NULL;
blob_buf_init(&script, 0);