Browse Source

jsonrpc: init len variable to avoid invalid usage

Daniel-Constantin Mierla 8 years ago
parent
commit
054812952f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/jsonrpcs/jsonrpcs_mod.c

+ 1 - 0
src/modules/jsonrpcs/jsonrpcs_mod.c

@@ -951,6 +951,7 @@ static struct rpc_delayed_ctx* jsonrpc_delayed_ctx_new(jsonrpc_ctx_t* ctx)
 
 	ret=0;
 	shm_msg=0;
+	len = 0;
 
 	if (ctx->reply_sent) {
 		LM_ERR("response already sent - cannot create a delayed context\n");