Fix issue in case of invalid IO
This commit is contained in:
1 parent
de0ef67cf2
commit
2feda4059f
1 file changed
+2
-1
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user