glx: init screen = 0 to fix optimized build warning
authorBrian Paul <brianp@vmware.com>
Wed, 13 Mar 2013 14:35:21 +0000 (08:35 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 15 Mar 2013 00:09:42 +0000 (18:09 -0600)
src/glx/glxcmds.c

index 8874e3bebf6695bc35c9bbaf2132d0fc356b24b2..7b62be344157c168b1083825dacb5bcbd4eeb97d 100644 (file)
@@ -1375,7 +1375,7 @@ glXImportContextEXT(Display *dpy, GLXContextID contextID)
    struct glx_config *mode;
    uint32_t fbconfigID = 0;
    uint32_t visualID = 0;
-   uint32_t screen;
+   uint32_t screen = 0;
    Bool got_screen = False;
 
    /* The GLX_EXT_import_context spec says: