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/gears.c b/clients/gears.c
index e7249eb..30f4e68 100644
--- a/clients/gears.c
+++ b/clients/gears.c
@@ -401,8 +401,7 @@
struct timeval tv;
int i;
- gears = malloc(sizeof *gears);
- memset(gears, 0, sizeof *gears);
+ gears = zalloc(sizeof *gears);
gears->d = display;
gears->window = window_create(display);
gears->widget = frame_create(gears->window, gears);