From: Peter Hutterer Date: Mon, 2 Feb 2015 23:36:17 +0000 (+1000) Subject: zalloc the libinput_source, don't malloc it X-Git-Tag: 0.10.0~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=536dd6a40fd1f48cdf1cdce888a836708e2e05cc;p=platform%2Fupstream%2Flibinput.git zalloc the libinput_source, don't malloc it Signed-off-by: Peter Hutterer Reviewed-by: Jonas Ã…dahl --- diff --git a/src/libinput.c b/src/libinput.c index 951698a0..7456b908 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;