diff options
author | Kevin McCarthy <kevin@8t8.us> | 2016-07-11 18:36:21 -0700 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2016-07-11 18:36:21 -0700 |
commit | c00f444a82a53e9a27864a4f44a1c072fb7c3128 (patch) | |
tree | d255e9e3164b2cd2ef9f69bb3c5fcc97d0b0555f /curs_lib.c | |
parent | 63883a091e1c124c77c6bd86391391d1bf1a02e5 (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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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 () |