removing NULL-terminating **tags definition in config.h
883e09b2
2 file(s) · +2 −2
| 12 | 12 | #define SELFGCOLOR "#ffffff" |
|
| 13 | 13 | ||
| 14 | 14 | /* tagging */ |
|
| 15 | - | const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www", NULL }; |
|
| 15 | + | const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" }; |
|
| 16 | 16 | Rule rules[] = { |
|
| 17 | 17 | /* class:instance:title regex tags regex isfloating */ |
|
| 18 | 18 | { "Firefox", "www", False }, |
| 1467 | 1467 | ||
| 1468 | 1468 | /* init tags */ |
|
| 1469 | 1469 | compileregs(); |
|
| 1470 | - | for(ntags = 0; tags[ntags]; ntags++); |
|
| 1470 | + | ntags = sizeof tags / sizeof tags[0]; |
|
| 1471 | 1471 | seltags = emallocz(sizeof(Bool) * ntags); |
|
| 1472 | 1472 | seltags[0] = True; |
|
| 1473 | 1473 |