inp_readall(): local scope for `tmp_ptr1'

This commit is contained in:
rlar 2013-02-09 17:35:13 +01:00
parent d7b99d83f6
commit 65f648d2cc
1 changed files with 1 additions and 0 deletions

View File

@ -826,6 +826,7 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c
if (ft_ngdebug) {
/*debug: print into file*/
FILE *fdo = fopen("debug-out.txt", "w");
struct line *tmp_ptr1;
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);