summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-07-21 18:42:41 -0600
committerBrian Paul <[email protected]>2015-07-23 20:19:50 -0600
commitdbefffa5b4c438008d44db106b5774f575cb495f (patch)
tree7fada1dffcfcb0d02ecaf0bd8c28b007e89acae5 /src/mesa/main/shaderapi.c
parent319b83b3ee2629f443a8734256bbf33b3fb4a7a9 (diff)
mesa: initialize variables to silence compiler warnings
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r--src/mesa/main/shaderapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 34d280a6fba..b86f22ef9c5 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -1432,7 +1432,7 @@ void GLAPIENTRY
_mesa_GetObjectParameterfvARB(GLhandleARB object, GLenum pname,
GLfloat *params)
{
- GLint iparams[1]; /* XXX is one element enough? */
+ GLint iparams[1] = {0}; /* XXX is one element enough? */
_mesa_GetObjectParameterivARB(object, pname, iparams);
params[0] = (GLfloat) iparams[0];
}