summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2005-02-17 21:22:25 +0000
committerchristos <christos@NetBSD.org>2005-02-17 21:22:25 +0000
commit1a940a96f9262bbaf11c68e8f349c2a406e83b28 (patch)
tree24820246e1cdb7ce544fdcbd2d927dd3dd3c153f /lib/libc/stdlib
parent3f899b0a98c288edbc4902e932032c8e8c02f189 (diff)
remove extraneous `*' that caused a core-dump.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/setenv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/setenv.c b/lib/libc/stdlib/setenv.c
index 74b97f2d68c..858c71882f0 100644
--- a/lib/libc/stdlib/setenv.c
+++ b/lib/libc/stdlib/setenv.c
@@ -1,4 +1,4 @@
-/* $NetBSD: setenv.c,v 1.28 2005/02/17 19:58:21 christos Exp $ */
+/* $NetBSD: setenv.c,v 1.29 2005/02/17 21:22:25 christos Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)setenv.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: setenv.c,v 1.28 2005/02/17 19:58:21 christos Exp $");
+__RCSID("$NetBSD: setenv.c,v 1.29 2005/02/17 21:22:25 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -90,7 +90,7 @@ setenv(name, value, rewrite)
} else { /* create new slot */
size_t cnt;
- for (cnt = 0; *environ[cnt]; ++cnt)
+ for (cnt = 0; environ[cnt]; ++cnt)
continue;
size = (size_t)(sizeof(char *) * (cnt + 2));
if (saveenv == environ) { /* just increase size */