diff options
Diffstat (limited to 'src/fe-text/gui-windows.c')
-rw-r--r-- | src/fe-text/gui-windows.c | 3 |
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) { |