summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-08-13 13:44:31 -0600
committerBrian Paul <brianp@vmware.com>2009-08-13 13:44:31 -0600
commitf418d18ea6059c761f45f055c05fbd0bb50f7a80 (patch)
treeb4df9fb032128a187ff77089fcb6d9d86732bd5f /src/mesa
parenta531a5cf940a55d4438521fe394ae5395977bf3f (diff)
mesa: fix some potential uninitialized memory references
Diffstat (limited to 'src/mesa')
-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 50a61bd84b..4323d3db82 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 ac604fd12c..17034680ad 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 );
}