diff options
Diffstat (limited to 'src/udev/keymap/keymap.c')
-rw-r--r-- | src/udev/keymap/keymap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/udev/keymap/keymap.c b/src/udev/keymap/keymap.c index 4c30ccf314..cc37a9b8c2 100644 --- a/src/udev/keymap/keymap.c +++ b/src/udev/keymap/keymap.c @@ -418,8 +418,9 @@ int main(int argc, char **argv) /* Keymap file argument is a filename */ /* Open override file if present, otherwise default file */ char keymap_path[PATH_MAX]; + FILE *f; snprintf(keymap_path, sizeof(keymap_path), "%s%s", SYSCONFDIR "/udev/keymaps/", filearg); - FILE *f = fopen(keymap_path, "r"); + f = fopen(keymap_path, "r"); if (f) { merge_table(fd, f); } else { |