OSDN Git Service

stw: fix potential uninitialized use of curctx
authorKeith Whitwell <keithw@vmware.com>
Wed, 6 May 2009 19:41:17 +0000 (20:41 +0100)
committerKeith Whitwell <keithw@vmware.com>
Fri, 8 May 2009 09:04:13 +0000 (10:04 +0100)
src/gallium/state_trackers/wgl/shared/stw_context.c

index b61f74f..dd97e48 100644 (file)
@@ -348,7 +348,7 @@ stw_make_current(
    struct stw_framebuffer *fb;
    GLuint width = 0;
    GLuint height = 0;
-   struct stw_context *curctx;
+   struct stw_context *curctx = NULL;
 
    if (!stw_dev)
       return FALSE;