glsl: initialise pointer to NULL

Fixes uninitialised warning and covery defect.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Timothy Arceri
2016-08-29 12:03:47 +10:00
parent 6a5504de2f
commit 22cec6dc5e

View 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.
*/