diff options
author | Roland McGrath <roland@redhat.com> | 1992-12-22 22:16:14 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1992-12-22 22:16:14 +0000 |
commit | 01e07f8ae2b4118368aead169a551b72cc8c73f6 (patch) | |
tree | 105eb898b218f3368819094e89218004f5480b4f | |
parent | f75288402e1981d19a0d3978b37da3e419759851 (diff) | |
download | gunmake-01e07f8ae2b4118368aead169a551b72cc8c73f6.tar.gz |
Formerly variable.c.~14~
-rw-r--r-- | variable.c | 6 |
1 files changed, 5 insertions, 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); |