소스 검색

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