1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@933 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-03 02:28:01 +00:00 committed by cras
parent 4a295a7343
commit 4d39f311f9
2 changed files with 3 additions and 2 deletions

View File

@ -982,6 +982,7 @@ static char *gui_window_line_get_format(WINDOW_REC *window, LINE_REC *line,
ret = NULL; ret = NULL;
else { else {
argcount = 0; argcount = 0;
memset(args, 0, sizeof(args));
while (*text != '\0' || text[1] != LINE_CMD_EOL) { while (*text != '\0' || text[1] != LINE_CMD_EOL) {
args[argcount] = line_read_format(&text); args[argcount] = line_read_format(&text);
if (raw != NULL) { if (raw != NULL) {