From: William Lallemand Date: Tue, 19 Nov 2024 14:43:35 +0000 (+0100) Subject: MEDIUM: stats-file: explicitely ignore comments starting by // X-Git-Tag: v3.1-dev14~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f36caf7b8153b62c27e1e0597147c2f785fe4aa5;p=thirdparty%2Fhaproxy.git MEDIUM: stats-file: explicitely ignore comments starting by // Explicitely ignore comments starting by // so they don't emit a warning. --- diff --git a/src/stats-file.c b/src/stats-file.c index a26f07e5fd..cc1b636ce9 100644 --- a/src/stats-file.c +++ b/src/stats-file.c @@ -385,6 +385,10 @@ void apply_stats_file(void) if (!istlen(istline)) continue; + /* comment line starts by // */ + if (istmatch(istline, ist("//")) != 0) + continue; + if (*istptr(istline) == '#') { if (parse_header_line(istline, &st_tree, &domain, cols)) { if (!valid_format) {