Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jan 2000 12:30:02 -0800 (PST)
From:      Peter Jeremy <peter.jeremy@alcatel.com.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   bin/10342: putenv(3) unnecessarily calls strdup/free
Message-ID:  <200001262030.MAA45685@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/10342; it has been noted by GNATS.

From: Peter Jeremy <peter.jeremy@alcatel.com.au>
To: rgrimes@gndrsh.dnsmgr.net
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: bin/10342: putenv(3) unnecessarily calls strdup/free
Date: Thu, 27 Jan 2000 07:21:26 +1100

 Hi Rod,
 
 I know it's been a while, but you were the last person to touch
 /usr/src/lib/libc/stdlib/putenv.c.  Could you please consider
 applying the following to close PR bin/10342:
 
 	Change putenv.c to:
 
 int
 putenv(str)
         const char *str;
 {
         char *equal;
 
         if ((equal = index(str, '=')) == NULL) {
                return (-1);
         }
         return (setenv(str, equal + 1, 1));
 }
 
 Peter
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001262030.MAA45685>