Signed-off-by: Peter Hutterer <[email protected]>
---
src/libinput.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libinput.c b/src/libinput.c
index 951698a..7456b90 100644
--- a/src/libinput.c
+++ b/src/libinput.c
@@ -510,7 +510,7 @@ libinput_add_fd(struct libinput *libinput,
struct libinput_source *source;
struct epoll_event ep;
- source = malloc(sizeof *source);
+ source = zalloc(sizeof *source);
if (!source)
return NULL;
--
2.1.0
_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel