mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-01-26 23:04:42 +00:00
Formerly variable.c.~14~
This commit is contained in:
parent
f75288402e
commit
01e07f8ae2
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue