]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly variable.c.~24~
authorRoland McGrath <roland@redhat.com>
Wed, 11 Aug 1993 20:04:34 +0000 (20:04 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 11 Aug 1993 20:04:34 +0000 (20:04 +0000)
variable.c

index 2f104acd4e99fc619dc44fc11e624c0b4e8a2879..59811a1c61703caee6dbb67c4c8fbb8440ce9fd7 100644 (file)
@@ -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')