summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/glxext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/glxext.c b/src/glx/glxext.c
index c227215d322..22fb61ac219 100644
--- a/src/glx/glxext.c
+++ b/src/glx/glxext.c
@@ -246,7 +246,7 @@ __glXCloseDisplay(Display * dpy, XExtCodes * codes)
prev = &glx_displays;
for (priv = glx_displays; priv; prev = &priv->next, priv = priv->next) {
if (priv->dpy == dpy) {
- (*prev)->next = priv->next;
+ (*prev) = priv->next;
break;
}
}