Browse Source

RPC: Initialise json_config to silence false warning

Luke Dashjr 11 years ago
parent
commit
1b7cb8aeea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api.c

+ 1 - 1
api.c

@@ -4064,7 +4064,7 @@ void api(int api_thr_id)
 	bool addrok;
 	char group;
 	json_error_t json_err;
-	json_t *json_config;
+	json_t *json_config = NULL;
 	json_t *json_val;
 	bool isjson;
 	bool did, isjoin, firstjoin;