appease lint

This commit is contained in:
christos 2018-11-24 13:03:15 +00:00
parent 9034ab8ec4
commit 47273da74b
1 changed files with 3 additions and 3 deletions

View File

@ -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 $ */ /* $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; *args_len = 1;
/* count '+' in str */ /* count '+' in str */
for (s = str; (s = strchr(s, '+')); (*args_len)++) for (s = str; (s = strchr(s, '+')) != NULL; (*args_len)++)
s++; s++;
args = bozomalloc(httpd, sizeof(*args) * (*args_len + 1)); args = bozomalloc(httpd, sizeof(*args) * (*args_len + 1));
args[0] = str; args[0] = str;
args[*args_len] = NULL; args[*args_len] = NULL;
for (s = str, i = 0; (s = strchr(s, '+'));) { for (s = str, i = 0; (s = strchr(s, '+')) != NULL;) {
*s = '\0'; *s = '\0';
s++; s++;
args[i++] = s; args[i++] = s;