Fix issue in case of invalid IO

This commit is contained in:
Patrick Pelissier committed 2023-04-21 22:44:23 +02:00
1 parent de0ef67cf2
commit 2feda4059f
1 file changed
+2 -1
+2 -1
View File
@@ -293,8 +293,9 @@ m_ser1al_json_read_skip (FILE *f)
{
int c;
do {
// c is an int, and is the value of the character read as unsigned char
c = fgetc(f);
} while (isspace(c));
} while (c != EOF && isspace(c));
return c;
}