diff -r e890cee887d1 -r e848966a1ac6 main.c --- a/main.c Thu Aug 03 11:38:26 2006 +0200 +++ b/main.c Thu Aug 03 12:12:26 2006 +0200 @@ -85,6 +85,7 @@ char stext[1024]; int tsel = DEFTAG; int screen, sx, sy, sw, sh, bx, by, bw, bh, mw; +unsigned int ntags; Atom wmatom[WMLast], netatom[NetLast]; Bool running = True; Bool issel = True; @@ -210,6 +211,8 @@ grabkeys(); + for(ntags = 0; tags[ntags]; ntags++); + /* style */ dc.bg = getcolor(BGCOLOR); dc.fg = getcolor(FGCOLOR);