summaryrefslogtreecommitdiff
path: root/libexec/httpd
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2018-11-24 13:03:15 +0000
committerchristos <christos@NetBSD.org>2018-11-24 13:03:15 +0000
commit60cd38dbcb2b6fa2308739134f8f576f15ce1f6f (patch)
treeb44a79b30717d687630aea8be4259d50aa11ce67 /libexec/httpd
parentdceb4d121fad96775d25a647cbf5e66662ff520b (diff)
appease lint
Diffstat (limited to 'libexec/httpd')
-rw-r--r--libexec/httpd/cgi-bozo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/httpd/cgi-bozo.c b/libexec/httpd/cgi-bozo.c
index 3d2d9334eba..49fba2969cb 100644
--- a/libexec/httpd/cgi-bozo.c
+++ b/libexec/httpd/cgi-bozo.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cgi-bozo.c,v 1.44 2018/11/23 08:11:20 mrg Exp $ */
+/* $NetBSD: cgi-bozo.c,v 1.45 2018/11/24 13:03:15 christos Exp $ */
/* $eterna: cgi-bozo.c,v 1.40 2011/11/18 09:21:15 mrg Exp $ */
@@ -234,14 +234,14 @@ parse_search_string(bozo_httpreq_t *request, const char *query, size_t *args_len
*/
*args_len = 1;
/* count '+' in str */
- for (s = str; (s = strchr(s, '+')); (*args_len)++)
+ for (s = str; (s = strchr(s, '+')) != NULL; (*args_len)++)
s++;
args = bozomalloc(httpd, sizeof(*args) * (*args_len + 1));
args[0] = str;
args[*args_len] = NULL;
- for (s = str, i = 0; (s = strchr(s, '+'));) {
+ for (s = str, i = 0; (s = strchr(s, '+')) != NULL;) {
*s = '\0';
s++;
args[i++] = s;