diff -r 09f1bf0e12ee -r 908feb1da3c4 dwm.c --- a/dwm.c Wed Feb 20 08:13:41 2008 +0000 +++ b/dwm.c Wed Feb 20 13:48:52 2008 +0000 @@ -2009,11 +2009,11 @@ void zoom(const char *arg) { - Client *c; + Client *c = sel; if(!sel || !dozoom || sel->isfloating) return; - if((c = sel) == nexttiled(clients, c->monitor)) + if(c == nexttiled(clients, c->monitor)) if(!(c = nexttiled(c->next, c->monitor))) return; detach(c);