]> granicus.if.org Git - neomutt/commitdiff
fix segfault when exiting with 'x' key
authorJan Synacek <jsynacek@redhat.com>
Thu, 29 Mar 2012 08:59:23 +0000 (10:59 +0200)
committerRichard Russon <rich@flatcap.org>
Mon, 4 Apr 2016 15:30:05 +0000 (16:30 +0100)
curs_main.c

index 0af13b54d61458ef9d528f01624fddc20455c7b0..851adb740e5ab0ebeb292380b4757569e32af9ad 100644 (file)
@@ -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)
     {