summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-08-29 21:15:43 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-08-29 21:15:43 +0200
commit0cdcbcc35f2b52f05d1ea375e9ac2e37181c2af8 (patch)
treea627b0e451dfa80b90b71d6fbe5c954bb83d0e90 /src/plugins/irc
parenta260039d01aedb94834eb2c6651b6613e1b09f1a (diff)
downloadweechat-0cdcbcc35f2b52f05d1ea375e9ac2e37181c2af8.zip
irc: fix uninitialiazed variables in function irc_message_split
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-message.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-message.c b/src/plugins/irc/irc-message.c
index 4a1ba8cd3..b2e11265a 100644
--- a/src/plugins/irc/irc-message.c
+++ b/src/plugins/irc/irc-message.c
@@ -719,6 +719,8 @@ irc_message_split (struct t_irc_server *server, const char *message)
command = NULL;
arguments = NULL;
index_args = 0;
+ argv = NULL;
+ argv_eol = NULL;
/* debug message */
if (weechat_irc_plugin->debug >= 2)
@@ -847,8 +849,10 @@ end:
irc_message_split_add (hashtable, 1, message, arguments);
}
- weechat_string_free_split (argv);
- weechat_string_free_split (argv_eol);
+ if (argv)
+ weechat_string_free_split (argv);
+ if (argv_eol)
+ weechat_string_free_split (argv_eol);
return hashtable;
}