about summary refs log tree commit diff stats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
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;
 
n28'>28 29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61