oops, _envp should have been _penvp

This commit is contained in:
eck
1990-09-27 16:52:07 +00:00
parent 2e281b6ca3
commit a55e047f20
4 changed files with 27 additions and 18 deletions

View File

@@ -6,12 +6,12 @@
#include <stdlib.h>
extern const char **environ;
extern const char **_penvp;
char *
getenv(const char *name)
{
register const char **v = environ;
register const char **v = _penvp;
register const char *p, *q;
if (v == NULL || name == NULL)