summaryrefslogtreecommitdiff
path: root/src/plugins/relay
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-09-17 14:53:25 +0200
committerSebastien Helleu <flashcode@flashtux.org>2010-09-17 14:53:25 +0200
commit83552cc882cf1c6ccc6b40137ddb10aa135f658a (patch)
tree3280de0cd38eeb8cbf3bc137b6ac9e2e381ce178 /src/plugins/relay
parentd2d60d47110f49c3f4bb34c539da87222b76b9d4 (diff)
downloadweechat-83552cc882cf1c6ccc6b40137ddb10aa135f658a.zip
Fix uninitialized variable
Diffstat (limited to 'src/plugins/relay')
-rw-r--r--src/plugins/relay/relay-client-irc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/relay/relay-client-irc.c b/src/plugins/relay/relay-client-irc.c
index 766c9e06d..63a7e57b9 100644
--- a/src/plugins/relay/relay-client-irc.c
+++ b/src/plugins/relay/relay-client-irc.c
@@ -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)
{