From 536dd6a40fd1f48cdf1cdce888a836708e2e05cc Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 3 Feb 2015 09:36:17 +1000 Subject: [PATCH] zalloc the libinput_source, don't malloc it MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Hutterer Reviewed-by: Jonas Ådahl --- 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.7.4