1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

Fix uninitialized variable

This commit is contained in:
Sebastien Helleu
2010-09-17 14:53:25 +02:00
parent d2d60d4711
commit 83552cc882
+4 -3
View File
@@ -319,6 +319,8 @@ relay_client_irc_signal_irc_outtags_cb (void *data, const char *signal,
client = (struct t_relay_client *)data;
tags = NULL;
message = strdup ((char *)signal_data);
if (!message)
goto end;
@@ -326,6 +328,8 @@ relay_client_irc_signal_irc_outtags_cb (void *data, const char *signal,
if (pos)
pos[0] = '\0';
ptr_message = message;
if (weechat_relay_plugin->debug >= 2)
{
weechat_printf (NULL, "%s: irc_out: client: %s, message: %s",
@@ -334,9 +338,6 @@ relay_client_irc_signal_irc_outtags_cb (void *data, const char *signal,
message);
}
tags = NULL;
ptr_message = message;
pos = strchr (ptr_message, ';');
if (pos)
{