diff options
author | Markus Ongyerth <ongy@ongy.net> | 2018-05-15 15:41:32 +0200 |
---|---|---|
committer | Markus Ongyerth <ongy@ongy.net> | 2018-07-14 09:43:16 +0200 |
commit | 31cec36b741d3c645c18c4e7e8dedbd6c6e3ece5 (patch) | |
tree | dcaf24b1bc55922a6e28f9de8bca2c32feeba71a /backend/libinput/tablet_pad.c | |
parent | 15870ceb4b0277cc83cdd824bd521de95a77d983 (diff) |
1st feedback pass
Rename make_ functions to _create
Implement set_cursor and set_feedback
Diffstat (limited to 'backend/libinput/tablet_pad.c')
-rw-r--r-- | backend/libinput/tablet_pad.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/libinput/tablet_pad.c b/backend/libinput/tablet_pad.c index bb65adf6..f1fb6d7a 100644 --- a/backend/libinput/tablet_pad.c +++ b/backend/libinput/tablet_pad.c @@ -21,7 +21,11 @@ static void add_tablet_path(struct wl_list *list, const char *path) { } tablet_path->path = strdup(path); - assert(tablet_path->path); + if (!tablet_path->path) { + free(tablet_path); + return; + } + wl_list_insert(list, &tablet_path->link); } |