projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avoid using the deprecated is_error() function from json-c
[project/libubox.git]
/
jshn.c
diff --git
a/jshn.c
b/jshn.c
index
cec48a0
..
e7e02d1
100644
(file)
--- a/
jshn.c
+++ b/
jshn.c
@@
-164,7
+164,7
@@
static int jshn_parse(const char *str)
json_object *obj;
obj = json_tokener_parse(str);
- if (
is_error(obj)
|| json_object_get_type(obj) != json_type_object) {
+ if (
!obj
|| json_object_get_type(obj) != json_type_object) {
fprintf(stderr, "Failed to parse message data\n");
return 1;
}