X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=c9495ec1fd12cb43b5466e2303e0a60a9a8dfb9d;hp=6a21d3face00cf684b69aaaaca14f443ca832bc7;hb=883e09b2eb8b6a42289bc5a64294df4122d90e38;hpb=7e25897f1108b1b24b3a1d4ebe69cfa6de1d08f0 diff --git a/dwm.c b/dwm.c index 6a21d3f..c9495ec 100644 --- a/dwm.c +++ b/dwm.c @@ -1467,7 +1467,7 @@ setup(void) { /* init tags */ compileregs(); - for(ntags = 0; tags[ntags]; ntags++); + ntags = sizeof tags / sizeof tags[0]; seltags = emallocz(sizeof(Bool) * ntags); seltags[0] = True;