Commit 883e09b

Anselm R. Garbe <garbeam@gmail.com>
2007-10-05 12:30:01
removing NULL-terminating **tags definition in config.h
1 parent 7e25897
Changed files (2)
config.def.h
@@ -12,7 +12,7 @@
 #define SELFGCOLOR		"#ffffff"
 
 /* tagging */
-const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www", NULL };
+const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" };
 Rule rules[] = {
 	/* class:instance:title regex	tags regex	isfloating */
 	{ "Firefox",			"www",		False },
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;