Commit 65cc39af authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add an assert to make flexelint happier

parent 7b048402
...@@ -232,6 +232,7 @@ VTIM_parse(const char *p) ...@@ -232,6 +232,7 @@ VTIM_parse(const char *p)
TIMESTAMP(); TIMESTAMP();
} else { } else {
WEEKDAY(); WEEKDAY();
assert(weekday >= 0 && weekday <= 6);
if (*p == ',') { if (*p == ',') {
/* RFC822 & RFC1123 - "Sun, 06 Nov 1994 08:49:37 GMT" */ /* RFC822 & RFC1123 - "Sun, 06 Nov 1994 08:49:37 GMT" */
p++; p++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment