From 73a9880417e3f71b3fe175793f4455b1fb1d7fb3 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Thu, 4 Feb 2010 16:07:27 -0800 Subject: [PATCH] Fix broken $() substitution in command files. (cherry picked from commit 8d65d0735ab9c955812e9c39a5b0b31f4d07796d) --- driver/substit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/driver/substit.c b/driver/substit.c index 833f45b80..7501d2db5 100644 --- a/driver/substit.c +++ b/driver/substit.c @@ -49,12 +49,13 @@ char* substitutions(const char*str) str = ep + 1; value = getenv(name); - if (value == 0) + if (value == 0) { fprintf(stderr, "Warning: environment variable " "\"%s\" not found during command file " "processing.\n", name); free(name); continue; + } free(name); if (strlen(value) >= (nbuf - (cp-buf))) {