xserver: Memset the right size

This commit is contained in:
Kristian Høgsberg 2011-07-20 18:15:50 -07:00
parent 4a431477ec
commit 535e2c65c7

View File

@ -564,7 +564,7 @@ wlsc_xserver_init(struct wlsc_compositor *compositor)
int fd;
mxs = malloc(sizeof *mxs);
memset(mxs, 0, sizeof mxs);
memset(mxs, 0, sizeof *mxs);
mxs->process.cleanup = wlsc_xserver_cleanup;
mxs->wl_display = display;