summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-07-29 16:01:39 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-07-29 16:03:44 -0400
commitcd601513f5ff4f488a6f6527bb033e39ee62ffda (patch)
tree3a4379bf02521a8d5d9195a8ddd32e674af71c57 /src
parent32ea5394173ecbfb766c5c02eccb21642aec0483 (diff)
glx: Fix linked list deletion in __glXCloseDisplay()
I hate single linked lists.
Diffstat (limited to 'src')
-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 c227215d32..22fb61ac21 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;
}
}