mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-02 01:08:14 +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);
|
c = getc(f);
|
||||||
if (c == EOF) {
|
if (c == EOF) {
|
||||||
if (current != NULL) {
|
if (current != NULL) {
|
||||||
// Close out open containers
|
*error = "Reached EOF without all containers being closed";
|
||||||
return current->parent;
|
|
||||||
} else {
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
} while (c == ' ' || c == '\t' || c == '\r' || c == '\n');
|
} while (c == ' ' || c == '\t' || c == '\r' || c == '\n');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user