summaryrefslogtreecommitdiffstats
path: root/curs_lib.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2016-07-11 18:36:21 -0700
committerKevin McCarthy <kevin@8t8.us>2016-07-11 18:36:21 -0700
commitc00f444a82a53e9a27864a4f44a1c072fb7c3128 (patch)
treed255e9e3164b2cd2ef9f69bb3c5fcc97d0b0555f /curs_lib.c
parent63883a091e1c124c77c6bd86391391d1bf1a02e5 (diff)
Initialize mutt windows even in batch mode. (closes #3853)
mutt_select_fcc() calls mutt_addr_hook() -> mutt_make_string() which refers to MuttIndexWindow->cols when calling mutt_FormatString(). In batch mode, MuttIndexWindow hasn't been initialized, leading to a segfault. This might be the only overlap, but it seems wiser to just initialize the mutt windows in case there are other references (now or in the future) when processing format strings in batch mode.
Diffstat (limited to 'curs_lib.c')
-rw-r--r--curs_lib.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/curs_lib.c b/curs_lib.c
index ef01f0d6..ed0d10c3 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -496,8 +496,6 @@ void mutt_init_windows ()
#ifdef USE_SIDEBAR
MuttSidebarWindow = safe_calloc (sizeof (mutt_window_t), 1);
#endif
-
- mutt_reflow_windows ();
}
void mutt_free_windows ()