Module: kamailio
Branch: 5.1
Commit: 8d8fec6496617ddad92b98acbcc2d6be4ef192e7
URL:
https://github.com/kamailio/kamailio/commit/8d8fec6496617ddad92b98acbcc2d6b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-06-21T08:25:57+02:00
nsq: removed obsolete json is_error() macro
(cherry picked from commit 586566c19a85a611d389062ca1f1de271e1891c3)
---
Modified: src/modules/nsq/nsq_json.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8d8fec6496617ddad92b98acbcc2d6b…
Patch:
https://github.com/kamailio/kamailio/commit/8d8fec6496617ddad92b98acbcc2d6b…
---
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;
}