diff options
author | Paul Smith <psmith@gnu.org> | 2004-03-22 15:11:48 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2004-03-22 15:11:48 +0000 |
commit | e334942e573ea8a4416eca0afafcaf45c3bba06f (patch) | |
tree | 856acdfc21f2aa5cbfca7dff414b193496f0d2c1 /expand.c | |
parent | f305a52c02cd17188bb6cc429d56c5912c976229 (diff) | |
download | gunmake-e334942e573ea8a4416eca0afafcaf45c3bba06f.tar.gz |
Numerous updates and bug fixes.
A number of W32 cleanups from J.Grant.
A number of OS/2 cleanups from Andreas Buening.
Various random bug fixes.
Diffstat (limited to 'expand.c')
-rw-r--r-- | expand.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -153,7 +153,8 @@ reference_variable (char *o, char *name, unsigned int length) if (v == 0) warn_undefined (name, length); - if (v == 0 || *v->value == '\0') + /* If there's no variable by that name or it has no value, stop now. */ + if (v == 0 || (*v->value == '\0' && !v->append)) return o; value = (v->recursive ? recursively_expand (v) : v->value); |