From: Karl Schultz Date: Tue, 13 Jan 2004 01:07:28 +0000 (+0000) Subject: init an uninitialized variable. This doesn't fix a latent bug because X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c5a45eafe7dae6db88484540edcdc17c39a0ee6;p=mesa.git init an uninitialized variable. This doesn't fix a latent bug because the variable was multiplied by zero. --- diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index dc6cb39adc7..c9896ae3ca6 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -754,7 +754,7 @@ _mesa_InterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer) /* Texcoords */ coordUnitSave = ctx->Array.ActiveTexture; if (tflag) { - GLuint i; + GLuint i=0; /* enable unit 0 texcoord array */ _mesa_ClientActiveTextureARB( GL_TEXTURE0_ARB ); _mesa_EnableClientState( GL_TEXTURE_COORD_ARRAY );