Mesa (mesa_7_7_branch): mesa: Initialize variable in get_tex_color_index.

Vinson Lee vlee at kemper.freedesktop.org
Tue Dec 29 13:39:04 PST 2009


Module: Mesa
Branch: mesa_7_7_branch
Commit: 62a0d4ef7fdf4788de84e6645f6f329482033c42
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=62a0d4ef7fdf4788de84e6645f6f329482033c42

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Dec 29 13:38:02 2009 -0800

mesa: Initialize variable in get_tex_color_index.

---

 src/mesa/main/texgetimage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index 23765d2..ac467c4 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);



More information about the mesa-commit mailing list