diff options
author | David Härdeman <david@hardeman.nu> | 2017-04-18 11:39:54 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2017-04-18 11:39:54 +0200 |
commit | 2e0aa9a48d2c038c683b48b6920f20ddf5f962a9 (patch) | |
tree | 2b94a64a525daa0e437d9c17aed1e93801fa8979 | |
parent | 006f4f036b0a1643e4d942cf7e56760cde287f5b (diff) |
Improve robustness if keymap is missing
-rw-r--r-- | rcm-server-main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rcm-server-main.c b/rcm-server-main.c index 9adccbc..76622f3 100644 --- a/rcm-server-main.c +++ b/rcm-server-main.c @@ -962,6 +962,8 @@ add_device(struct manager *mgr, struct udev_device *udev) device->lirc_fd = -1; device->error = NULL; device->input_name = NULL; + device->driver_name = NULL; + device->keymap_name = NULL; if (keymaps_load(device) < 0) { fprintf(stderr, "failed to load keymaps: %m\n"); |