test: fix memset size for WindowRec (#37801)

X.Org Bug 37801 <http://bugs.freedesktop.org/show_bug.cgi?id=37801>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Cyril Brulebois <kibi@debian.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Peter Hutterer 2011-06-01 10:24:43 +10:00 committed by Keith Packard
parent 48b4b778f6
commit d9bda34d0d

View File

@ -121,7 +121,7 @@ ClientRec init_client(int len, void *data)
void init_window(WindowPtr window, WindowPtr parent, int id)
{
memset(window, 0, sizeof(window));
memset(window, 0, sizeof(*window));
window->drawable.id = id;
if (parent)