There's no guarantee that this structure is cleared when the client is
created, so clear it out ourselves.

Signed-off-by: Keith Packard <[email protected]>
---
 glx/glxext.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/glx/glxext.c b/glx/glxext.c
index e88bbd107..bbd2dc664 100644
--- a/glx/glxext.c
+++ b/glx/glxext.c
@@ -275,6 +275,7 @@ glxClientCallback(CallbackListPtr *list, void *closure, 
void *data)
 
     switch (pClient->clientState) {
     case ClientStateRunning:
+        memset(cl, '\0', sizeof (*cl));
         cl->client = pClient;
         break;
 
-- 
2.11.0

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to