summaryrefslogtreecommitdiff
path: root/expand.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-08-30 16:31:47 +0000
committerRoland McGrath <roland@redhat.com>1993-08-30 16:31:47 +0000
commitb24a026b02794b99fadf81b0c10dbebda04c3c80 (patch)
tree78b9950da2d0549083fd6080e6b3dc772b4aa98a /expand.c
parent0ef3708713d8390b78a0cd2d3aac6b8506a04f7c (diff)
downloadgunmake-b24a026b02794b99fadf81b0c10dbebda04c3c80.tar.gz
entered into RCS
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/expand.c b/expand.c
index 702152b..bbbd6a7 100644
--- a/expand.c
+++ b/expand.c
@@ -341,7 +341,14 @@ variable_expand (line)
/* Look up the value of the variable. */
end = index (beg, closeparen);
if (end == 0)
- return initialize_variable_output ();
+ {
+ /* Unterminated variable reference. */
+ if (reading_filename != 0)
+ makefile_fatal (reading_filename, *reading_lineno_ptr,
+ "unterminated variable reference");
+ else
+ fatal ("unterminated variable reference");
+ }
o = reference_variable (o, beg, end - beg);
}