diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-02 21:40:14 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-05-02 21:40:14 +0200 |
commit | 8f86f319ca043550658b5333da7482918e8bdb87 (patch) | |
tree | 8fa043bb4c125a0803934e68ed0199b1dd790082 /src/plugins/relay | |
parent | fef2ecec9bfa2c4a238e4bc18c99da7c8949838d (diff) | |
download | weechat-8f86f319ca043550658b5333da7482918e8bdb87.zip |
relay: fix use of uninitialized variable "ptr_buffer"
Diffstat (limited to 'src/plugins/relay')
-rw-r--r-- | src/plugins/relay/api/relay-api-protocol.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |