aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorDi Ma <focus64@gmail.com>2020-03-22 15:29:19 -0700
committerBrian Ashworth <bosrsf04@gmail.com>2020-04-14 19:41:30 -0400
commitc1c2fe04bbdab8380db62cd3b481356abea2facd (patch)
treeb25bf3bba0f4b638529f397e41d1a44fb6fa76b5 /sway/input
parenta3e574f63ffdf34b1bc21620be3d065cee1ea54b (diff)
Fix a use-after-free error in switch binding
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/switch.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sway/input/switch.c b/sway/input/switch.c
index 8347f066..3bbc636d 100644
--- a/sway/input/switch.c
+++ b/sway/input/switch.c
@@ -4,7 +4,6 @@
#include "sway/input/switch.h"
#include <wlr/types/wlr_idle.h>
#include "log.h"
-#include <string.h>
struct sway_switch *sway_switch_create(struct sway_seat *seat,
struct sway_seat_device *device) {