1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Fix: Allow the use of bools for <logarchive>

This commit is contained in:
Philipp Schafft 2018-09-28 10:58:50 +00:00
parent 5257fcaa7b
commit 29680ec6e2

View File

@ -2286,7 +2286,13 @@ static void _parse_logging(xmlDocPtr doc,
if (tmp) if (tmp)
xmlFree(tmp); xmlFree(tmp);
} else if (xmlStrcmp(node->name, XMLSTR("logarchive")) == 0) { } else if (xmlStrcmp(node->name, XMLSTR("logarchive")) == 0) {
__read_int(doc, node, &configuration->logarchive, "<logarchive> must not be empty."); char *tmp = (char *)xmlNodeListGetString(doc, node->xmlChildrenNode, 1);
configuration->logarchive = util_str_to_bool(tmp);
if (tmp) {
xmlFree(tmp);
} else {
ICECAST_LOG_WARN("<logarchive> must not be empty.");
}
} }
} while ((node = node->next)); } while ((node = node->next));
} }