mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Call ParseFinishLine() also for the last line in a file. This
patch differs from the previous one in that it calls the function only when a real file hits EOF. The bodies of .for loops are also handled as files, but for these we don't want to end a dependency block on the 'EOF' as in: foo: do-this .for ... do-something .endfor do-more
This commit is contained in:
parent
43eca7506e
commit
b13ac84d46
1 changed files with 3 additions and 0 deletions
|
|
@ -2534,6 +2534,9 @@ Parse_File(char *name, FILE *stream)
|
|||
|
||||
free(line);
|
||||
}
|
||||
if (curFile.F != NULL)
|
||||
ParseFinishLine();
|
||||
|
||||
/*
|
||||
* Reached EOF, but it may be just EOF of an include file...
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue