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 +}