summaryrefslogtreecommitdiff
path: root/expand.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-09-24 02:41:44 +0000
committerPaul Smith <psmith@gnu.org>2009-09-24 02:41:44 +0000
commit0afbbf8595b6035a5a930399d20320d2e2852d72 (patch)
tree6c74d485e4d57b2bf41bb5d6afaac1b4569dd554 /expand.c
parent3cc351decdd7d53fea0c730fd919163f20706762 (diff)
downloadgunmake-0afbbf8595b6035a5a930399d20320d2e2852d72.tar.gz
- Rework secondary expansion so we only defer it if there's a possibility
it might be needed: for most situations we parse prereqs immediately as we used to. Reduces memory usage. - Fixes Savannah bug #18622.
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/expand.c b/expand.c
index b5d5338..6cdf4ea 100644
--- a/expand.c
+++ b/expand.c
@@ -407,8 +407,8 @@ variable_expand_string (char *line, const char *string, long length)
if (*p == '\0')
break;
- else
- ++p;
+
+ ++p;
}
if (abuf)