mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-07 13:29:49 -05:00
types/wlr_input_device: name maybe NULL
Signed-off-by: xurui <xurui@kylinos.cn>
This commit is contained in:
parent
604fcdb1db
commit
47d0a90274
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ void wlr_input_device_init(struct wlr_input_device *dev,
|
|||
enum wlr_input_device_type type, const char *name) {
|
||||
*dev = (struct wlr_input_device){
|
||||
.type = type,
|
||||
.name = strdup(name),
|
||||
.name = name ? strdup(name) : NULL,
|
||||
};
|
||||
|
||||
wl_signal_init(&dev->events.destroy);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue