Commit 3748cdb0 authored by kernc's avatar kernc

Failed check was missing when opening custom keymap.

git-svn-id: https://logkeys.googlecode.com/svn/trunk@39 c501e62c-e7d1-11de-a198-37193048d1ed
parent e3cb923b
......@@ -242,6 +242,9 @@ int main(int argc, char **argv)
memset(altgr_keys, '\0', sizeof(altgr_keys));
stdin = freopen(args.keymap, "r", stdin);
if (stdin == NULL)
error(EXIT_FAILURE, errno, "Error opening input keymap '%s'", args.keymap);
unsigned int i = -1;
unsigned int line_number = 0;
char func_string[32];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment