Skip to content

Commit

Permalink
Improve invalid config.txt handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ililim committed May 24, 2019
1 parent d54b779 commit 26ef66e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dual-key-remap.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,11 @@ int setStateFromConfigLine(struct appState *state, char *line, int linenum)
}
else if (strstr(line, "when_alone="))
{
state->keysTail->whenAlone = keyDef->code;
if (state->keysTail) state->keysTail->whenAlone = keyDef->code;
}
else if (strstr(line, "with_other="))
{
state->keysTail->withOther = keyDef->code;
if (state->keysTail) state->keysTail->withOther = keyDef->code;
}
else
{
Expand Down

0 comments on commit 26ef66e

Please sign in to comment.