summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-08-11 20:04:34 +0000
committerRoland McGrath <roland@redhat.com>1993-08-11 20:04:34 +0000
commitd2654362c5e7f1debaa1ad70de350b86824cdebc (patch)
treee3b4a5752b37ef65f26a9b51c90e31fc8320fdc1 /variable.c
parent1bafe5ed816ba1da59994ae14c36e26e30c42a14 (diff)
downloadgunmake-d2654362c5e7f1debaa1ad70de350b86824cdebc.tar.gz
Formerly variable.c.~24~
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/variable.c b/variable.c
index 2f104ac..59811a1 100644
--- a/variable.c
+++ b/variable.c
@@ -446,7 +446,6 @@ target_environment (file)
register struct variable *v;
for (v = set->table[i]; v != 0; v = v->next)
{
- extern char *getenv ();
unsigned int j = i % buckets;
register struct variable_bucket *ov;
register char *p = v->name;
@@ -464,10 +463,9 @@ target_environment (file)
/* Only export default variables by explicit request. */
continue;
- if (!export_all_variables
+ if (! export_all_variables
&& v->origin != o_command
- && v->origin != o_env && v->origin != o_env_override
- && !(v->origin == o_file && getenv (p) != 0))
+ && v->origin != o_env && v->origin != o_env_override)
continue;
if (*p != '_' && (*p < 'A' || *p > 'Z')