glx: Move declaration outside for loop.
authorVinson Lee <vlee@vmware.com>
Wed, 23 Dec 2009 20:42:38 +0000 (12:42 -0800)
committerVinson Lee <vlee@vmware.com>
Wed, 23 Dec 2009 20:42:38 +0000 (12:42 -0800)
src/glx/x11/glxext.c

index e5553cbf76ca32b2ce3c9a4117f1a9fbcd8a1c25..5633a3e4a29a22af80562f49589b96f1ac5e7107 100644 (file)
@@ -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;
       }