diff options
-rw-r--r-- | source/dialogs/dmenu.c | 3 | ||||
-rw-r--r-- | source/keyb.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/source/dialogs/dmenu.c b/source/dialogs/dmenu.c index a3de01b4..2d3cb877 100644 --- a/source/dialogs/dmenu.c +++ b/source/dialogs/dmenu.c @@ -256,7 +256,8 @@ int dmenu_switcher_dialog ( char **input ) retv = 10 + ( mretv & MENU_LOWER_MASK ); } return retv; - } else if ( (mretv&MENU_CANCEL)== MENU_CANCEL) { + } + else if ( ( mretv & MENU_CANCEL ) == MENU_CANCEL ) { // In no custom mode we allow canceling. restart = ( find_arg ( "-only-match" ) >= 0 ); } diff --git a/source/keyb.c b/source/keyb.c index ea140f4b..c8afc59e 100644 --- a/source/keyb.c +++ b/source/keyb.c @@ -262,6 +262,7 @@ void parse_keys_abe ( void ) char *sp = NULL; g_free ( abe[iter].kb ); + abe[iter].kb = NULL; abe[iter].num_bindings = 0; // Iter over bindings. |