mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-01-22 04:18:01 +00:00
Treat unclosed containers at EOF as an error after all
This commit is contained in:
parent
6449e817b6
commit
55692cb27c
@ -116,11 +116,10 @@ again:
|
||||
c = getc(f);
|
||||
if (c == EOF) {
|
||||
if (current != NULL) {
|
||||
// Close out open containers
|
||||
return current->parent;
|
||||
} else {
|
||||
return NULL;
|
||||
*error = "Reached EOF without all containers being closed";
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
} while (c == ' ' || c == '\t' || c == '\r' || c == '\n');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user