mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 18:05:42 +02:00
Make sure the root pointer is null for errors at the top level
This commit is contained in:
@@ -182,6 +182,12 @@ static void string_free(struct string *s) {
|
|||||||
|
|
||||||
json_object *json_read_separators(json_pull *j, json_separator_callback cb, void *state) {
|
json_object *json_read_separators(json_pull *j, json_separator_callback cb, void *state) {
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
|
// In case there is an error at the top level
|
||||||
|
if (j->container == NULL) {
|
||||||
|
j->root = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
again:
|
again:
|
||||||
/////////////////////////// Whitespace
|
/////////////////////////// Whitespace
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user