Browse Source

jansson: init structure to avoid compile warnings

(cherry picked from commit 852a82c330d5c73b6c402e519e3d6ec8ac610665)
Daniel-Constantin Mierla 9 years ago
parent
commit
745196cb59
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/jansson/jansson_funcs.c

+ 1 - 1
modules/jansson/jansson_funcs.c

@@ -135,7 +135,7 @@ int janssonmod_set(unsigned int append, struct sip_msg* msg, char* type_in,
 	json_t* result_json = NULL;
 	json_t* value = NULL;
 	char* freeme = NULL;
-	json_error_t parsing_error;
+	json_error_t parsing_error = {0};
 	char* endptr;
 
 	/* check the type */