Module: kamailio
Branch: master
Commit: 586566c19a85a611d389062ca1f1de271e1891c3
URL: 
https://github.com/kamailio/kamailio/commit/586566c19a85a611d389062ca1f1de271e1891c3

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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/586566c19a85a611d389062ca1f1de271e1891c3.diff
Patch: 
https://github.com/kamailio/kamailio/commit/586566c19a85a611d389062ca1f1de271e1891c3.patch

---

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;
        }


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to