From b24a026b02794b99fadf81b0c10dbebda04c3c80 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 30 Aug 1993 16:31:47 +0000 Subject: entered into RCS --- expand.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3