From 1a940a96f9262bbaf11c68e8f349c2a406e83b28 Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 17 Feb 2005 21:22:25 +0000 Subject: [PATCH] remove extraneous `*' that caused a core-dump. --- lib/libc/stdlib/setenv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libc/stdlib/setenv.c b/lib/libc/stdlib/setenv.c index 74b97f2d68c5..858c71882f01 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 */