Mesa (mesa_7_6_branch): glx: Move declaration outside for loop.

Vinson Lee vlee at kemper.freedesktop.org
Wed Dec 23 12:43:52 PST 2009


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Dec 23 12:42:38 2009 -0800

glx: Move declaration outside for loop.

---

 src/glx/x11/glxext.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index e5553cb..5633a3e 100644
--- a/src/glx/x11/glxext.c
+++ b/src/glx/x11/glxext.c
@@ -150,8 +150,9 @@ FreeScreenConfigs(__GLXdisplayPrivate * priv)
 
 #ifdef GLX_DIRECT_RENDERING
       if (psc->driver_configs) {
-         for (unsigned int i = 0; psc->driver_configs[i]; i++)
-            free((__DRIconfig *) psc->driver_configs[i]);
+         unsigned int j;
+         for (j = 0; psc->driver_configs[j]; j++)
+            free((__DRIconfig *) psc->driver_configs[j]);
          free(psc->driver_configs);
          psc->driver_configs = NULL;
       }



More information about the mesa-commit mailing list