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

Author: Keith Whitwell <[email protected]>
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;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to