소스 검색

json: removed obsoleted libsjon macro is_error()

Daniel-Constantin Mierla 7 년 전
부모
커밋
a19a18e376
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/modules/json/json_funcs.c

+ 1 - 1
src/modules/json/json_funcs.c

@@ -173,7 +173,7 @@ struct json_object *tr_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;
 	}