From e128a6218760036ca47eb8cab818cf33bc40eba6 Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 25 Feb 2013 19:09:12 +0100 Subject: [PATCH] expand_libs(): think of `next' instead `prev' --- src/frontend/inpcom.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index ee66267b5..7fe7e45e2 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -189,7 +189,7 @@ read_a_lib(char *y, int call_depth, char *dir_name) static int expand_section_references(int line_number) { - struct line *tmp_ptr = NULL, *prev; + struct line *tmp_ptr = NULL, *next; int lib_idx; for (lib_idx = 0; lib_idx < num_libraries; lib_idx++) { @@ -268,14 +268,14 @@ expand_section_references(int line_number) } } - prev = working; - working = working->li_next; + next = working->li_next; if (!found_section) { - tfree(prev->li_line); - tfree(prev); + tfree(working->li_line); + tfree(working); } + working = next; } if (found_section) {