[master] 185b70353 Only assert fmtcheck(3) on sane operating systems.
Poul-Henning Kamp
phk at FreeBSD.org
Thu Apr 29 06:45:06 UTC 2021
commit 185b703532fa4521f51cf938df1de5378066f9e9
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Apr 29 06:44:17 2021 +0000
Only assert fmtcheck(3) on sane operating systems.
diff --git a/bin/varnishncsa/varnishncsa.c b/bin/varnishncsa/varnishncsa.c
index afb455154..a9b5fd185 100644
--- a/bin/varnishncsa/varnishncsa.c
+++ b/bin/varnishncsa/varnishncsa.c
@@ -324,7 +324,9 @@ format_time(const struct format *format)
WRONG("Time format specifier");
}
+#ifdef __FreeBSD__
assert(fmtcheck(format->time_fmt, "%jd") == format->time_fmt);
+#endif
AZ(VSB_printf(CTX.vsb, format->time_fmt, l));
return (1);
More information about the varnish-commit
mailing list