From ca351a1762efc06aff026f8273d5284c8306c749 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 24 Feb 2013 19:49:41 +0100 Subject: [PATCH] expand_libs(): shrink scope of `found_section' --- src/frontend/inpcom.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 6adb96236..b2b645f0c 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -190,10 +190,10 @@ static int expand_section_references(int line_number) { struct line *tmp_ptr = NULL, *prev; - bool found_section = FALSE; int lib_idx; for (lib_idx = 0; lib_idx < num_libraries; lib_idx++) { + bool found_section = FALSE; struct line *working = library_deck[lib_idx]; while (working) { char *buffer = working->li_line; @@ -282,8 +282,6 @@ expand_section_references(int line_number) fprintf(stderr, "ERROR: .lib is missing .endl!\n"); controlled_exit(EXIT_FAILURE); } - - found_section = FALSE; } return line_number;