From a06791bc9044b89494ea39cf0111b72f94d36511 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 27 Jan 1999 21:24:50 +0000 Subject: [PATCH] Fix getenv() comparison against '=' ... was *cp = '=' instead of *cp == '='. --- sys/kern/kern_environment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_environment.c b/sys/kern/kern_environment.c index 2243e2749fb6..565a16d680eb 100644 --- a/sys/kern/kern_environment.c +++ b/sys/kern/kern_environment.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: kern_environment.c,v 1.3 1998/10/09 21:21:34 msmith Exp $ + * $Id: kern_environment.c,v 1.4 1999/01/15 17:24:56 msmith Exp $ */ /* @@ -57,7 +57,7 @@ getenv(char *name) for (ep = cp; (*ep != '=') && (*ep != 0); ep++) ; len = ep - cp; - if (*ep = '=') + if (*ep == '=') ep++; if (!strncmp(name, cp, len)) return(ep);