aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/input-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r--sway/input/input-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c
index 4f9ed891..cfd39bab 100644
--- a/sway/input/input-manager.c
+++ b/sway/input/input-manager.c
@@ -47,7 +47,7 @@ struct sway_seat *input_manager_get_seat(const char *seat_name, bool create) {
47char *input_device_get_identifier(struct wlr_input_device *device) { 47char *input_device_get_identifier(struct wlr_input_device *device) {
48 int vendor = device->vendor; 48 int vendor = device->vendor;
49 int product = device->product; 49 int product = device->product;
50 char *name = strdup(device->name); 50 char *name = strdup(device->name ? device->name : "");
51 strip_whitespace(name); 51 strip_whitespace(name);
52 52
53 char *p = name; 53 char *p = name;