summaryrefslogtreecommitdiffstats
path: root/src/glx/x11
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-12-23 12:42:38 -0800
committerVinson Lee <[email protected]>2009-12-23 12:42:38 -0800
commitcf3bb0cf315a761210a0b3bf426aa6f30024fac3 (patch)
treea820cec5619c540b2906063a54c2b3556ca50eb8 /src/glx/x11
parent57b5ca5d11044d06f8969d54ff01c27ff44585ac (diff)
glx: Move declaration outside for loop.
Diffstat (limited to 'src/glx/x11')
-rw-r--r--src/glx/x11/glxext.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c
index e5553cbf76c..5633a3e4a29 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;
}