diff options
author | Bryce Harrington <bryce@osg.samsung.com> | 2016-02-11 16:42:49 -0800 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2016-03-09 22:54:54 -0800 |
commit | 0d1a6223751242387f1fe62c8da508d6035d7fbd (patch) | |
tree | 2b0aa6fbd816b21b1de78595300da67dfe09a614 /clients/window.c | |
parent | cd9424ef2a8face5d64b086bc55ab4e70e077beb (diff) | |
download | weston-0d1a6223751242387f1fe62c8da508d6035d7fbd.tar.gz |
clients: Use zalloc
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'clients/window.c')
-rw-r--r-- | clients/window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clients/window.c b/clients/window.c index 35261b63..ced867ef 100644 --- a/clients/window.c +++ b/clients/window.c @@ -68,6 +68,7 @@ typedef void *EGLContext; #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 @@ egl_window_surface_create(struct display *display, if (display->dpy == EGL_NO_DISPLAY) return NULL; - surface = calloc(1, sizeof *surface); + surface = zalloc(sizeof *surface); if (!surface) return NULL; |