Przeglądaj źródła

json: removed obsoleted libsjon macro is_error()

Daniel-Constantin Mierla 7 lat temu
rodzic
commit
a19a18e376
1 zmienionych plików z 1 dodań i 1 usunięć
  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;
 	}