Mesa (master): glsl: initialise pointer to NULL
Timothy Arceri
tarceri at kemper.freedesktop.org
Mon Aug 29 03:13:52 UTC 2016
Module: Mesa
Branch: master
Commit: 22cec6dc5e5a3060bc87f4a92871b4f6eef04632
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=22cec6dc5e5a3060bc87f4a92871b4f6eef04632
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date: Mon Aug 29 12:03:47 2016 +1000
glsl: initialise pointer to NULL
Fixes uninitialised warning and covery defect.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/compiler/glsl/lower_blend_equation_advanced.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/glsl/lower_blend_equation_advanced.cpp b/src/compiler/glsl/lower_blend_equation_advanced.cpp
index 1c095dd..a998df1 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.
*/
More information about the mesa-commit
mailing list