allow commented categories

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@644 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale
2009-02-04 21:34:02 +00:00
parent 7241056f70
commit c334ae7745
2 changed files with 9 additions and 4 deletions

View File

@@ -2098,7 +2098,12 @@ static zap_status_t load_config(void)
}
while (zap_config_next_pair(&cfg, &var, &val)) {
if (!strncasecmp(cfg.category, "span", 4)) {
if (*cfg.category == '#') {
if (cfg.catno != catno) {
zap_log(ZAP_LOG_DEBUG, "Skipping %s\n", cfg.category);
catno = cfg.catno;
}
} else if (!strncasecmp(cfg.category, "span", 4)) {
if (cfg.catno != catno) {
char *type = cfg.category + 4;
char *name;