Changed nested to static variable. Otherwise gets reset with each line.

Signed-off-by: D. Mitch Bailey <d.mitch.bailey@gmail.com>
This commit is contained in:
D. Mitch Bailey 2025-10-23 08:30:08 +00:00
parent b371af9235
commit 017bdc6e48
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ int GetNextLineNoNewline(char *delimiter)
{
char *newbuf;
int testc;
int nested = 0;
static int nested = 0;
int llen;
if (feof(infile)) return -1;