From b6bd49da4ec54b3a221413d747b35c5bcefbe7ba Mon Sep 17 00:00:00 2001 From: agc Date: Thu, 8 Oct 1998 12:22:54 +0000 Subject: [PATCH] One more piece of lint. --- usr.sbin/pkg_install/lib/str.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.sbin/pkg_install/lib/str.c b/usr.sbin/pkg_install/lib/str.c index 170fabd3ac92..67213be8b438 100644 --- a/usr.sbin/pkg_install/lib/str.c +++ b/usr.sbin/pkg_install/lib/str.c @@ -1,11 +1,11 @@ -/* $NetBSD: str.c,v 1.8 1998/10/08 12:15:25 agc Exp $ */ +/* $NetBSD: str.c,v 1.9 1998/10/08 12:22:54 agc Exp $ */ #include #ifndef lint #if 0 static const char *rcsid = "Id: str.c,v 1.5 1997/10/08 07:48:21 charnier Exp"; #else -__RCSID("$NetBSD: str.c,v 1.8 1998/10/08 12:15:25 agc Exp $"); +__RCSID("$NetBSD: str.c,v 1.9 1998/10/08 12:22:54 agc Exp $"); #endif #endif @@ -197,7 +197,8 @@ alternate_match(const char *pattern, const char *pkg) } (void) strncpy(buf, pattern, (size_t)(sep - pattern)); alt = &buf[sep - pattern]; - for (last = (char *) NULL, cnt = 0, cp = sep; *cp && last == (char *) NULL ; cp++) { + last = (char *) NULL; + for (cnt = 0, cp = sep; *cp && last == (char *) NULL ; cp++) { if (*cp == '{') { cnt++; } else if (*cp == '}' && --cnt == 0 && last == (char *) NULL) {