clients: Use zalloc
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
diff --git a/clients/window.c b/clients/window.c
index 35261b6..ced867e 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -68,6 +68,7 @@
#include <wayland-client.h>
#include "shared/cairo-util.h"
#include "shared/helpers.h"
+#include "shared/zalloc.h"
#include "xdg-shell-unstable-v5-client-protocol.h"
#include "text-cursor-position-client-protocol.h"
#include "shared/os-compatibility.h"
@@ -629,7 +630,7 @@
if (display->dpy == EGL_NO_DISPLAY)
return NULL;
- surface = calloc(1, sizeof *surface);
+ surface = zalloc(sizeof *surface);
if (!surface)
return NULL;