glsl: initialise pointer to NULL
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 29 Aug 2016 02:03:47 +0000 (12:03 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Mon, 29 Aug 2016 03:13:42 +0000 (13:13 +1000)
Fixes uninitialised warning and covery defect.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/lower_blend_equation_advanced.cpp

index 1c095dd4f716bbd6c6dc7a95f9df36b445bf607e..a998df14027c65a463653eba90c0391642ecc51f 100644 (file)
@@ -438,7 +438,7 @@ deref_output(ir_variable *var)
 static ir_function_signature *
 get_main(gl_linked_shader *sh)
 {
-   ir_function_signature *sig;
+   ir_function_signature *sig = NULL;
    /* We can't use _mesa_get_main_function_signature() because we don't
     * have a symbol table at this point.  Just go find main() by hand.
     */