From: Keith Whitwell Date: Wed, 6 May 2009 19:41:17 +0000 (+0100) Subject: stw: fix potential uninitialized use of curctx X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee7982718685cd2398a895caf5e7cd90b6ee12f9;p=mesa.git stw: fix potential uninitialized use of curctx --- diff --git a/src/gallium/state_trackers/wgl/shared/stw_context.c b/src/gallium/state_trackers/wgl/shared/stw_context.c index b61f74f69b6..dd97e48b144 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;