From: Jan Synacek Date: Thu, 29 Mar 2012 08:59:23 +0000 (+0200) Subject: fix segfault when exiting with 'x' key X-Git-Tag: neomutt-20160404~13^2~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec94d267a7cf150f09dc1196e29f8bab6fcadeb2;p=neomutt fix segfault when exiting with 'x' key --- diff --git a/curs_main.c b/curs_main.c index 0af13b54d..851adb740 100644 --- a/curs_main.c +++ b/curs_main.c @@ -969,7 +969,10 @@ int mutt_index_menu (void) mutt_curs_set (1); /* fallback from the pager */ } - nm_debug_check(Context); + if (Context) + { + nm_debug_check(Context); + } switch (op) { @@ -2616,7 +2619,11 @@ int mutt_index_menu (void) km_error_key (MENU_MAIN); } - nm_debug_check(Context); + if (Context) + { + nm_debug_check(Context); + } + if (menu->menu == MENU_PAGER) {