Browse Source

expand_libs(): shrink scope of `found_section'

pre-master-46
rlar 13 years ago
parent
commit
fcb5b12364
  1. 4
      src/frontend/inpcom.c

4
src/frontend/inpcom.c

@ -190,10 +190,10 @@ static int
expand_section_references(int line_number) expand_section_references(int line_number)
{ {
struct line *tmp_ptr = NULL, *prev; struct line *tmp_ptr = NULL, *prev;
bool found_section = FALSE;
int lib_idx; int lib_idx;
for (lib_idx = 0; lib_idx < num_libraries; lib_idx++) { for (lib_idx = 0; lib_idx < num_libraries; lib_idx++) {
bool found_section = FALSE;
struct line *working = library_deck[lib_idx]; struct line *working = library_deck[lib_idx];
while (working) { while (working) {
char *buffer = working->li_line; char *buffer = working->li_line;
@ -282,8 +282,6 @@ expand_section_references(int line_number)
fprintf(stderr, "ERROR: .lib is missing .endl!\n"); fprintf(stderr, "ERROR: .lib is missing .endl!\n");
controlled_exit(EXIT_FAILURE); controlled_exit(EXIT_FAILURE);
} }
found_section = FALSE;
} }
return line_number; return line_number;

Loading…
Cancel
Save