From f8540b9dcc1fba886be5c4ce7ea0d74952cb48c4 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 --- glx/glxdri2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glx/glxdri2.c b/glx/glxdri2.c index e8961e255..d97971739 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;