inp_readall(): local scope for `fdo'

This commit is contained in:
rlar 2013-01-19 18:40:01 +01:00
parent 3583277603
commit d7b99d83f6
1 changed files with 1 additions and 2 deletions

View File

@ -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);