[Mesa-dev] [PATCH] glsl: initialise pointer to NULL
Kenneth Graunke
kenneth at whitecape.org
Mon Aug 29 02:47:58 UTC 2016
On Monday, August 29, 2016 12:03:47 PM PDT Timothy Arceri wrote:
> Fixes uninitialised warning and covery defect.
>
> Cc: 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.
> */
>
I wrote this same patch yesterday but accidentally only sent out the
FLT_EPSILON one. Sorry for the trouble. Let's call that a:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160828/92109777/attachment.sig>
More information about the mesa-dev
mailing list