OSDN Git Service

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 8874e3b..7b62be3 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: