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

irc: fix uninitialiazed variables in function irc_message_split

This commit is contained in:
Sebastien Helleu
2011-08-29 21:15:43 +02:00
parent a260039d01
commit 0cdcbcc35f
+6 -2
View File
@@ -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;
}