[master] b8f4cd4 Flexelint silencing.
Poul-Henning Kamp
phk at varnish-cache.org
Wed Mar 9 13:48:34 CET 2011
commit b8f4cd4d45448c46a8de1ddfa38cde45a2760ad2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Mar 9 12:36:26 2011 +0000
Flexelint silencing.
(Did you remember that toupper() can be called with EOF ?)
diff --git a/lib/libvmod_std/vmod_std.c b/lib/libvmod_std/vmod_std.c
index 2807af1..4be07c7 100644
--- a/lib/libvmod_std/vmod_std.c
+++ b/lib/libvmod_std/vmod_std.c
@@ -59,9 +59,9 @@ vmod_updown(struct sess *sp, int up, const char *s, va_list ap)
if (p != NULL) {
for (; b < e && *p != '\0'; p++)
if (up)
- *b++ = toupper(*p);
+ *b++ = (char)toupper(*p);
else
- *b++ = tolower(*p);
+ *b++ = (char)tolower(*p);
}
p = va_arg(ap, const char *);
}
More information about the varnish-commit
mailing list