From d7b99d83f6e61c398d67c3ef1458bd95fc7496f1 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 19 Jan 2013 18:40:01 +0100 Subject: [PATCH] inp_readall(): local scope for `fdo' --- src/frontend/inpcom.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index c6000edb5..1c6aaaddf 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -274,7 +274,6 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c size_t max_line_length; /* max. line length in input deck */ - FILE *fdo; struct line *tmp_ptr1 = NULL; bool found_end = FALSE, shell_eol_continuation = FALSE; @@ -826,7 +825,7 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c if (ft_ngdebug) { /*debug: print into file*/ - fdo = fopen("debug-out.txt", "w"); + FILE *fdo = fopen("debug-out.txt", "w"); for (tmp_ptr1 = cc; tmp_ptr1 != NULL; tmp_ptr1 = tmp_ptr1->li_next) fprintf(fdo, "%d %d %s\n", tmp_ptr1->li_linenum_orig, tmp_ptr1->li_linenum, tmp_ptr1->li_line);