From 29680ec6e24c3251aa33f07b88dfc280586d6b10 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 28 Sep 2018 10:58:50 +0000 Subject: [PATCH] Fix: Allow the use of bools for --- src/cfgfile.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/cfgfile.c b/src/cfgfile.c index 29477649..ab5d1cb1 100644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -2286,7 +2286,13 @@ static void _parse_logging(xmlDocPtr doc, if (tmp) xmlFree(tmp); } else if (xmlStrcmp(node->name, XMLSTR("logarchive")) == 0) { - __read_int(doc, node, &configuration->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(" must not be empty."); + } } } while ((node = node->next)); }