aboutsummaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c
index b59e4cd..d80034c 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -192,11 +192,11 @@ void parse_config(struct parser *parser, struct table *hotkey_map)
(parser_check(parser, Token_Key_Hex)) ||
(parser_check(parser, Token_Key))) {
hotkey = parse_hotkey(parser);
- table_add(hotkey_map, hotkey, hotkey);
if(parser->error) {
free_hotkeys(hotkey_map);
return;
}
+ table_add(hotkey_map, hotkey, hotkey);
} else {
fprintf(stderr, "(#%d:%d) expected token 'Token_Modifier', 'Token_Key_Hex' or 'Token_Key', but got '%.*s'\n",
parser->current_token.line, parser->current_token.cursor,