malloc + memset -> zalloc
And for clients using the xmalloc helper, use xzalloc.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
diff --git a/clients/cliptest.c b/clients/cliptest.c
index 7d58551..4b77808 100644
--- a/clients/cliptest.c
+++ b/clients/cliptest.c
@@ -791,9 +791,7 @@
{
struct cliptest *cliptest;
- cliptest = xmalloc(sizeof *cliptest);
- memset(cliptest, 0, sizeof *cliptest);
-
+ cliptest = xzalloc(sizeof *cliptest);
cliptest->surface.geometry = &cliptest->geometry;
cliptest->surface.transform.enabled = 0;
geometry_init(&cliptest->geometry);