summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-08-29 12:03:47 +1000
committerTimothy Arceri <[email protected]>2016-08-29 13:13:42 +1000
commit22cec6dc5e5a3060bc87f4a92871b4f6eef04632 (patch)
tree9a79cf73d2efb97b4c0f2cc87b56bd1077538462 /src
parent6a5504de2fbc43b445406324485629a313f7e542 (diff)
glsl: initialise pointer to NULL
Fixes uninitialised warning and covery defect. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/glsl/lower_blend_equation_advanced.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/lower_blend_equation_advanced.cpp b/src/compiler/glsl/lower_blend_equation_advanced.cpp
index 1c095dd4f71..a998df14027 100644
--- a/src/compiler/glsl/lower_blend_equation_advanced.cpp
+++ b/src/compiler/glsl/lower_blend_equation_advanced.cpp
@@ -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.
*/