glx: silence uninitialized var warning
authorBrian Paul <brianp@vmware.com>
Wed, 5 Apr 2017 20:07:57 +0000 (14:07 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Apr 2017 19:46:44 +0000 (13:46 -0600)
Signed-off-by: Brian Paul <brianp@vmware.com>
src/glx/glx_pbuffer.c

index 0c15d2ae4de294bf8e6661747e8d554db4d05aa7..933b5d9ecd1f446b1be8826ff7df7ac80f00c55c 100644 (file)
@@ -901,7 +901,7 @@ glXGetSelectedEvent(Display * dpy, GLXDrawable drawable, unsigned long *mask)
    __glXSendError(dpy, GLXBadDrawable, drawable, X_GLXGetDrawableAttributes,
                   true);
 #else
-   unsigned int value;
+   unsigned int value = 0;
 
 
    /* The non-sense with value is required because on LP64 platforms