diff options
author | Roland McGrath <roland@redhat.com> | 1993-08-30 16:31:47 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1993-08-30 16:31:47 +0000 |
commit | b24a026b02794b99fadf81b0c10dbebda04c3c80 (patch) | |
tree | 78b9950da2d0549083fd6080e6b3dc772b4aa98a /expand.c | |
parent | 0ef3708713d8390b78a0cd2d3aac6b8506a04f7c (diff) | |
download | gunmake-b24a026b02794b99fadf81b0c10dbebda04c3c80.tar.gz |
entered into RCS
Diffstat (limited to 'expand.c')
-rw-r--r-- | expand.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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); } |