Module: kamailio
Branch: master
Commit: a19a18e376a054460eb194d7d5c37687af06d4a5
URL:
https://github.com/kamailio/kamailio/commit/a19a18e376a054460eb194d7d5c3768…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-06-19T08:18:36+02:00
json: removed obsoleted libsjon macro is_error()
---
Modified: src/modules/json/json_funcs.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a19a18e376a054460eb194d7d5c3768…
Patch:
https://github.com/kamailio/kamailio/commit/a19a18e376a054460eb194d7d5c3768…
---
diff --git a/src/modules/json/json_funcs.c b/src/modules/json/json_funcs.c
index 360bfc172c..b99d6f7d9c 100644
--- a/src/modules/json/json_funcs.c
+++ b/src/modules/json/json_funcs.c
@@ -173,7 +173,7 @@ struct json_object *tr_json_get_field_object(str *json, str *field)
struct json_object *j = json_tokener_parse(dup);
pkg_free(dup);
- if(is_error(j)) {
+ if(j==NULL) {
LM_ERR("empty or invalid JSON\n");
return NULL;
}