From e334942e573ea8a4416eca0afafcaf45c3bba06f Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 22 Mar 2004 15:11:48 +0000 Subject: 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. --- expand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'expand.c') diff --git a/expand.c b/expand.c index 8f9f4b1..2c8b4b6 100644 --- a/expand.c +++ b/expand.c @@ -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); -- cgit v1.2.3