Fix getenv() comparison against '=' ... was *cp = '=' instead of
*cp == '='.
This commit is contained in:
parent
b4e36adf1c
commit
a06791bc90
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43299
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user