summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-13 13:44:31 -0600
committerBrian Paul <[email protected]>2009-08-13 13:44:31 -0600
commitf418d18ea6059c761f45f055c05fbd0bb50f7a80 (patch)
treeb4df9fb032128a187ff77089fcb6d9d86732bd5f /src
parenta531a5cf940a55d4438521fe394ae5395977bf3f (diff)
mesa: fix some potential uninitialized memory references
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/fog.c2
-rw-r--r--src/mesa/main/light.c2
2 files changed, 2 insertions, 2 deletions
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 );
}