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/resizor.c b/clients/resizor.c
index 49b2817..68e4bf9 100644
--- a/clients/resizor.c
+++ b/clients/resizor.c
@@ -233,9 +233,7 @@
{
struct resizor *resizor;
- resizor = xmalloc(sizeof *resizor);
- memset(resizor, 0, sizeof *resizor);
-
+ resizor = xzalloc(sizeof *resizor);
resizor->window = window_create(display);
resizor->widget = frame_create(resizor->window, resizor);
window_set_title(resizor->window, "Wayland Resizor");