projects
/
platform
/
upstream
/
make.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f752884
)
Formerly variable.c.~14~
author
Roland McGrath
<roland@redhat.com>
Tue, 22 Dec 1992 22:16:14 +0000
(22:16 +0000)
committer
Roland McGrath
<roland@redhat.com>
Tue, 22 Dec 1992 22:16:14 +0000
(22:16 +0000)
variable.c
patch
|
blob
|
history
diff --git
a/variable.c
b/variable.c
index
60daf81
..
181b76d
100644
(file)
--- a/
variable.c
+++ b/
variable.c
@@
-490,7
+490,11
@@
target_environment (file)
for (b = table[i]; b != 0; b = b->next)
{
register struct variable *v = b->variable;
- result[nvariables++] = concat (v->name, "=", v->value);
+ /* If V is recursively expanded, expand its value. */
+ char *value = v->recursive ? recursively_expand (v) : v->value;
+ result[nvariables++] = concat (v->name, "=", value);
+ if (v->recursive)
+ free (value);
}
}
result[nvariables] = (char *) xmalloc (100);