2
0
Эх сурвалжийг харах

nsq: removed obsolete json is_error() macro

Daniel-Constantin Mierla 7 жил өмнө
parent
commit
586566c19a

+ 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);
 	struct json_object *j = json_tokener_parse(dup);
 	pkg_free(dup);
 	pkg_free(dup);
 
 
-	if (is_error(j)) {
+	if (j==NULL) {
 		LM_ERR("empty or invalid JSON\n");
 		LM_ERR("empty or invalid JSON\n");
 		return NULL;
 		return NULL;
 	}
 	}