From 18e3a436ace1d0c920ff07f25b18f9e7dad2ef4c Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 24 Feb 2013 19:48:21 +0100 Subject: [PATCH] expand_libs(): bug fix, missing check for .endl at the tail of a file --- src/frontend/inpcom.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index bb58c8de2..6adb96236 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -277,6 +277,13 @@ expand_section_references(int line_number) } } + + if (found_section) { + fprintf(stderr, "ERROR: .lib is missing .endl!\n"); + controlled_exit(EXIT_FAILURE); + } + + found_section = FALSE; } return line_number;