]> granicus.if.org Git - mutt/commitdiff
Fix a macro-related segmentation fault. From Byrial Jensen.
authorThomas Roessler <roessler@does-not-exist.org>
Sat, 8 Jan 2000 09:39:35 +0000 (09:39 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sat, 8 Jan 2000 09:39:35 +0000 (09:39 +0000)
keymap.c

index f9655b6650aa8fbdd02809deeaf0a7c320fa9a3d..08886ed59ed2dfa870ef19291bd205fcb85e6a29 100644 (file)
--- a/keymap.c
+++ b/keymap.c
@@ -380,8 +380,8 @@ int km_dokey (int menu)
       struct binding_t *bindings;
 
       /* is this a valid op for this menu? */
-      bindings = km_get_table (menu);
-      if ((func = get_func (bindings, tmp.op)))
+      if ((bindings = km_get_table (menu)) &&
+         (func = get_func (bindings, tmp.op)))
        return tmp.op;
 
       if (menu == MENU_EDITOR && get_func (OpEditor, tmp.op))