From e67afcdb9a6a634d6903da3f272aed7dab0e91b3 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 15 Apr 2011 12:57:05 -0400 Subject: [PATCH] glx: Use 0 rather than garbage for unknown INTEL_swap_event types Otherwise the garbage you return could well be numerically identical to one of the swap type tokens, and apps which rely on us to tell the truth would be in trouble. Reviewed-by: Jesse Barnes Signed-off-by: Adam Jackson (cherry picked from commit f8540b9dcc1fba886be5c4ce7ea0d74952cb48c4) --- glx/glxdri2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 8d21c937b..c4b7ba4c6 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -184,6 +184,7 @@ __glXdriSwapEvent(ClientPtr client, void *data, int type, CARD64 ust, break; default: /* unknown swap completion type */ + wire.event_type = 0; break; } wire.drawable = drawable->drawId;