From 10e92db1d378156407fdad9f530daa1185a5654f Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 12 Apr 2016 13:49:53 +0300 Subject: [PATCH] eventdemo: use zalloc Zero-initialize the struct, just in case. Signed-off-by: Pekka Paalanen Reviewed-by: Yong Bakos Tested-by: Yong Bakos Reviewed-by: Benoit Gschwind Tested-by: Benoit Gschwind --- clients/eventdemo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/eventdemo.c b/clients/eventdemo.c index f1558d23..38eb9044 100644 --- a/clients/eventdemo.c +++ b/clients/eventdemo.c @@ -373,7 +373,7 @@ eventdemo_create(struct display *d) { struct eventdemo *e; - e = malloc(sizeof (struct eventdemo)); + e = zalloc(sizeof (struct eventdemo)); if (e == NULL) return NULL;