From: Vinson Lee Date: Tue, 29 Dec 2009 21:38:02 +0000 (-0800) Subject: mesa: Initialize variable in get_tex_color_index. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62a0d4ef7fdf4788de84e6645f6f329482033c42;p=mesa.git mesa: Initialize variable in get_tex_color_index. --- diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 23765d27530..ac467c490a4 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -103,7 +103,7 @@ get_tex_color_index(GLcontext *ctx, GLuint dimensions, for (img = 0; img < depth; img++) { for (row = 0; row < height; row++) { - GLuint indexRow[MAX_WIDTH]; + GLuint indexRow[MAX_WIDTH] = { 0 }; void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, width, height, format, type, img, row, 0);