]> git.ipfire.org Git - thirdparty/make.git/commitdiff
entered into RCS
authorRoland McGrath <roland@redhat.com>
Mon, 30 Aug 1993 16:31:47 +0000 (16:31 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 30 Aug 1993 16:31:47 +0000 (16:31 +0000)
expand.c

index 702152bdc185d3da7f54c4a6c1bd9933f1783276..bbbd6a704dd2c129af8a19d0f9dbb552ce61faca 100644 (file)
--- 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);
              }