summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2017-04-18 11:39:54 +0200
committerDavid Härdeman <david@hardeman.nu>2017-04-18 11:39:54 +0200
commit2e0aa9a48d2c038c683b48b6920f20ddf5f962a9 (patch)
tree2b94a64a525daa0e437d9c17aed1e93801fa8979
parent006f4f036b0a1643e4d942cf7e56760cde287f5b (diff)
Improve robustness if keymap is missing
-rw-r--r--rcm-server-main.c2
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");