mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Treat unclosed containers at EOF as an error after all
This commit is contained in:
+3
-4
@@ -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');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user