diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-27 21:24:50 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-27 21:24:50 +0000 |
commit | e3ebc13accad2ec25e186a62fa2982c0467454ba (patch) | |
tree | 94aedfaf597b88998f5d26b5e6f06fa2d915e276 /sys/kern/kern_environment.c | |
parent | 0775a53cddb430a21259a269e0a7063ec0a1ee17 (diff) | |
download | FreeBSD-src-e3ebc13accad2ec25e186a62fa2982c0467454ba.zip FreeBSD-src-e3ebc13accad2ec25e186a62fa2982c0467454ba.tar.gz |
Fix getenv() comparison against '=' ... was *cp = '=' instead of
*cp == '='.
Diffstat (limited to 'sys/kern/kern_environment.c')
-rw-r--r-- | sys/kern/kern_environment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_environment.c b/sys/kern/kern_environment.c index 2243e27..565a16d 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); |