Fix use of possibly uninitialised memory

This commit is contained in:
Přemysl Eric Janouch 2020-10-10 02:55:35 +02:00
parent 57a3b4e990
commit 20c8578084
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -2924,7 +2924,7 @@ json_rpc_call_raw (struct app_context *ctx,
if (error) if (error)
return error; return error;
maybe_print_verbose (ctx, ATTR_INCOMING, buf->str, buf->len); maybe_print_verbose (ctx, ATTR_INCOMING, buf->str, buf->len + 1);
return NULL; return NULL;
} }