summaryrefslogtreecommitdiffhomepage
path: root/patch/attachx.c
diff options
context:
space:
mode:
Diffstat (limited to 'patch/attachx.c')
-rw-r--r--patch/attachx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/patch/attachx.c b/patch/attachx.c
index 1557510..e52e386 100644
--- a/patch/attachx.c
+++ b/patch/attachx.c
@@ -34,8 +34,9 @@ attachx(Client *c)
for (at = c->mon->clients; at && at->next; at = at->next);
if (at) {
at->next = c;
+ c->next = NULL;
return;
}
#endif
attach(c); // master (default)
-} \ No newline at end of file
+}