From 0fc1e953351f89a52a6eaaab140729d34ca07809 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 29 Aug 2014 13:25:17 +0200 Subject: hotplug: avoid using the deprecated is_error() call, check for NULL pointer instead Signed-off-by: Felix Fietkau --- plug/hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plug') 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); -- cgit v1.2.3