diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-09-23 14:02:31 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-09-23 14:02:31 +0400 |
commit | c8fc0897cdfff6393919030e24809e938ee5076f (patch) | |
tree | f461949b2ddeac3afc669de93add57a129b7402d /blobmsg_json.c | |
parent | fa73496098893e90330040b8f43f2773b42eed12 (diff) |
avoid using the deprecated is_error() function from json-c
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'blobmsg_json.c')
-rw-r--r-- | blobmsg_json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blobmsg_json.c b/blobmsg_json.c index 8f208e0..5aa528b 100644 --- a/blobmsg_json.c +++ b/blobmsg_json.c @@ -76,7 +76,7 @@ static bool __blobmsg_add_json(struct blob_buf *b, json_object *obj) { bool ret = false; - if (is_error(obj)) + if (!obj) return false; if (json_object_get_type(obj) != json_type_object) |