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/src/xwayland/launcher.c b/src/xwayland/launcher.c
index 3228b53..b639479 100644
--- a/src/xwayland/launcher.c
+++ b/src/xwayland/launcher.c
@@ -325,9 +325,7 @@
struct weston_xserver *wxs;
char lockfile[256], display_name[8];
- wxs = malloc(sizeof *wxs);
- memset(wxs, 0, sizeof *wxs);
-
+ wxs = zalloc(sizeof *wxs);
wxs->process.cleanup = weston_xserver_cleanup;
wxs->wl_display = display;
wxs->compositor = compositor;