summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-12-03 02:28:01 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-12-03 02:28:01 +0000
commit4d39f311f99da06b4a489423a881672e508bebf7 (patch)
tree59ebb172f13caa24d92c577101bfd120c9ee21eb /src/fe-text
parent4a295a734328fb17de4b5b15e033762744ddf52b (diff)
downloadirssi-4d39f311f99da06b4a489423a881672e508bebf7.zip
fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@933 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/gui-windows.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c
index 5ed1bd88..34c6c719 100644
--- a/src/fe-text/gui-windows.c
+++ b/src/fe-text/gui-windows.c
@@ -981,7 +981,8 @@ static char *gui_window_line_get_format(WINDOW_REC *window, LINE_REC *line,
if (formatnum == -1)
ret = NULL;
else {
- argcount = 0;
+ argcount = 0;
+ memset(args, 0, sizeof(args));
while (*text != '\0' || text[1] != LINE_CMD_EOL) {
args[argcount] = line_read_format(&text);
if (raw != NULL) {