[Mesa-dev] [PATCH] draw: silence uninitialized variable warning

Brian Paul brianp at vmware.com
Fri Dec 19 08:48:41 PST 2014


---
 src/gallium/auxiliary/draw/draw_gs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/auxiliary/draw/draw_gs.c b/src/gallium/auxiliary/draw/draw_gs.c
index 40f7ed3..7b1cc0b 100644
--- a/src/gallium/auxiliary/draw/draw_gs.c
+++ b/src/gallium/auxiliary/draw/draw_gs.c
@@ -733,6 +733,7 @@ draw_create_geometry_shader(struct draw_context *draw,
    } else
 #endif
    {
+      llvm_gs = NULL;
       gs = CALLOC_STRUCT(draw_geometry_shader);
    }
 
-- 
1.9.1



More information about the mesa-dev mailing list