From: Brian Paul Date: Thu, 13 Aug 2009 19:44:31 +0000 (-0600) Subject: mesa: fix some potential uninitialized memory references X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f418d18ea6059c761f45f055c05fbd0bb50f7a80;p=mesa.git mesa: fix some potential uninitialized memory references --- diff --git a/src/mesa/main/fog.c b/src/mesa/main/fog.c index 50a61bd84bf..4323d3db820 100644 --- a/src/mesa/main/fog.c +++ b/src/mesa/main/fog.c @@ -67,7 +67,7 @@ _mesa_Fogiv(GLenum pname, const GLint *params ) break; default: /* Error will be caught later in _mesa_Fogfv */ - ; + ASSIGN_4V(p, 0.0F, 0.0F, 0.0F, 0.0F); } _mesa_Fogfv(pname, p); } diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c index ac604fd12cc..17034680add 100644 --- a/src/mesa/main/light.c +++ b/src/mesa/main/light.c @@ -496,7 +496,7 @@ _mesa_LightModeliv( GLenum pname, const GLint *params ) break; default: /* Error will be caught later in gl_LightModelfv */ - ; + ASSIGN_4V(fparam, 0.0F, 0.0F, 0.0F, 0.0F); } _mesa_LightModelfv( pname, fparam ); }