aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/test
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/test')
-rw-r--r--xorg-server/test/xi2/protocol-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/test/xi2/protocol-common.c b/xorg-server/test/xi2/protocol-common.c
index a414ad1fb..b6909f925 100644
--- a/xorg-server/test/xi2/protocol-common.c
+++ b/xorg-server/test/xi2/protocol-common.c
@@ -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)