Mesa (mesa_7_6_branch): draw: Initialize variable in draw_pt.c.

Vinson Lee vlee at kemper.freedesktop.org
Sat Dec 5 15:11:56 PST 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 3cd745515e72c42efcd0c9f7d30e58f46f821b98
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3cd745515e72c42efcd0c9f7d30e58f46f821b98

Author: Vinson Lee <vlee at vmware.com>
Date:   Fri Nov 20 16:03:48 2009 -0800

draw: Initialize variable in draw_pt.c.
(cherry picked from commit ea98e9820d7117f7a187f355445796b1ef5d9e0c)

---

 src/gallium/auxiliary/draw/draw_pt.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_pt.c b/src/gallium/auxiliary/draw/draw_pt.c
index dbb5ac7..4865a2d 100644
--- a/src/gallium/auxiliary/draw/draw_pt.c
+++ b/src/gallium/auxiliary/draw/draw_pt.c
@@ -192,7 +192,8 @@ draw_print_arrays(struct draw_context *draw, uint prim, int start, uint count)
                 prim, start, count);
 
    for (i = 0; i < count; i++) {
-      uint ii, j;
+      uint ii = 0;
+      uint j;
 
       if (draw->pt.user.elts) {
          /* indexed arrays */



More information about the mesa-commit mailing list