mirror of
https://github.com/swaywm/sway.git
synced 2026-04-28 06:46:26 -04:00
do not create uninitialized sway_keyboard
It's not good to create a uninitialized struct, because it might become a possible error in future. I actually got hit by this while working on https://github.com/swaywm/sway/pull/3155 Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
This commit is contained in:
parent
827e5513e0
commit
58fab705ac
3 changed files with 22 additions and 24 deletions
|
|
@ -47,8 +47,6 @@ struct sway_keyboard {
|
|||
struct sway_keyboard *sway_keyboard_create(struct sway_seat *seat,
|
||||
struct sway_seat_device *device);
|
||||
|
||||
void sway_keyboard_configure(struct sway_keyboard *keyboard);
|
||||
|
||||
void sway_keyboard_destroy(struct sway_keyboard *keyboard);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue