From 8f86f319ca043550658b5333da7482918e8bdb87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 2 May 2024 21:40:14 +0200 Subject: relay: fix use of uninitialized variable "ptr_buffer" --- src/plugins/relay/api/relay-api-protocol.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/relay') diff --git a/src/plugins/relay/api/relay-api-protocol.c b/src/plugins/relay/api/relay-api-protocol.c index fbb0ed2a5..e4c0ec729 100644 --- a/src/plugins/relay/api/relay-api-protocol.c +++ b/src/plugins/relay/api/relay-api-protocol.c @@ -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) { -- cgit v1.2.3