From: Felix Fietkau Date: Fri, 29 Aug 2014 11:25:17 +0000 (+0200) Subject: hotplug: avoid using the deprecated is_error() call, check for NULL pointer instead X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0fc1e953351f89a52a6eaaab140729d34ca07809;p=oweals%2Fprocd.git hotplug: avoid using the deprecated is_error() call, check for NULL pointer instead Signed-off-by: Felix Fietkau --- diff --git a/plug/hotplug.c b/plug/hotplug.c index 6f65c17..061833a 100644 --- 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);