[master] 65cc39a Add an assert to make flexelint happier
Poul-Henning Kamp
phk at FreeBSD.org
Tue Feb 24 09:02:29 CET 2015
commit 65cc39af875c938ce9ba604b8f9d30ca230b6156
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Feb 24 08:01:02 2015 +0000
Add an assert to make flexelint happier
diff --git a/lib/libvarnish/vtim.c b/lib/libvarnish/vtim.c
index a7e4c6e..2b37816 100644
--- a/lib/libvarnish/vtim.c
+++ b/lib/libvarnish/vtim.c
@@ -232,6 +232,7 @@ VTIM_parse(const char *p)
TIMESTAMP();
} else {
WEEKDAY();
+ assert(weekday >= 0 && weekday <= 6);
if (*p == ',') {
/* RFC822 & RFC1123 - "Sun, 06 Nov 1994 08:49:37 GMT" */
p++;
More information about the varnish-commit
mailing list