Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/httpd appease lint
details: https://anonhg.NetBSD.org/src/rev/604a70ff9b2d
branches: trunk
changeset: 446115:604a70ff9b2d
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 24 13:03:15 2018 +0000
description:
appease lint
diffstat:
libexec/httpd/cgi-bozo.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 67aecaf8760c -r 604a70ff9b2d libexec/httpd/cgi-bozo.c
--- a/libexec/httpd/cgi-bozo.c Sat Nov 24 13:02:46 2018 +0000
+++ b/libexec/httpd/cgi-bozo.c Sat Nov 24 13:03:15 2018 +0000
@@ -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 @@
*/
*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;
Home |
Main Index |
Thread Index |
Old Index