Mesa (master): stw: fix potential uninitialized use of curctx

Keith Whitwell keithw at kemper.freedesktop.org
Fri May 8 09:04:21 UTC 2009


Module: Mesa
Branch: master
Commit: 48c7aa2648877efab4aac45b50ee2a4c79178536
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=48c7aa2648877efab4aac45b50ee2a4c79178536

Author: Keith Whitwell <keithw at vmware.com>
Date:   Wed May  6 20:41:17 2009 +0100

stw: fix potential uninitialized use of curctx

---

 .../state_trackers/wgl/shared/stw_context.c        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/wgl/shared/stw_context.c b/src/gallium/state_trackers/wgl/shared/stw_context.c
index b61f74f..dd97e48 100644
--- a/src/gallium/state_trackers/wgl/shared/stw_context.c
+++ b/src/gallium/state_trackers/wgl/shared/stw_context.c
@@ -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;




More information about the mesa-commit mailing list