mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-04-08 19:44:15 +00:00
Fix logic error that broke top-level hashes
This commit is contained in:
parent
7983c66add
commit
95410dbf33
@ -129,7 +129,7 @@ json_object *json_parse(FILE *f, json_object *current) {
|
||||
if (current->parent == NULL || current->parent->type != JSON_HASH) {
|
||||
json_error("} without {\n");
|
||||
}
|
||||
if (current->parent->hash != NULL || current->parent->hash->value == NULL) {
|
||||
if (current->parent->hash != NULL && current->parent->hash->value == NULL) {
|
||||
json_error("} without hash value\n");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user