Module: kamailio
Branch: master
Commit: 586566c19a85a611d389062ca1f1de271e1891c3
URL:
https://github.com/kamailio/kamailio/commit/586566c19a85a611d389062ca1f1de2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-06-07T10:34:42+02:00
nsq: removed obsolete json is_error() macro
---
Modified: src/modules/nsq/nsq_json.c
---
Diff:
https://github.com/kamailio/kamailio/commit/586566c19a85a611d389062ca1f1de2…
Patch:
https://github.com/kamailio/kamailio/commit/586566c19a85a611d389062ca1f1de2…
---
diff --git a/src/modules/nsq/nsq_json.c b/src/modules/nsq/nsq_json.c
index 85b817364a..a817b70ecd 100644
--- a/src/modules/nsq/nsq_json.c
+++ b/src/modules/nsq/nsq_json.c
@@ -110,7 +110,7 @@ struct json_object * nsq_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;
}