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) {