浏览代码

nsq: removed obsolete json is_error() macro

Daniel-Constantin Mierla 7 年之前
父节点
当前提交
586566c19a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/nsq/nsq_json.c

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