1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

relay: fix use of uninitialized variable "ptr_buffer"

This commit is contained in:
Sébastien Helleu
2024-05-02 21:40:14 +02:00
parent fef2ecec9b
commit 8f86f319ca
@@ -515,6 +515,7 @@ RELAY_API_PROTOCOL_CALLBACK(input)
if (!json_body)
return WEECHAT_RC_ERROR;
ptr_buffer = NULL;
json_buffer_id = cJSON_GetObjectItem (json_body, "buffer_id");
if (json_buffer_id)
{