mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Fix logic error that broke top-level hashes
This commit is contained in:
+1
-1
@@ -129,7 +129,7 @@ json_object *json_parse(FILE *f, json_object *current) {
|
|||||||
if (current->parent == NULL || current->parent->type != JSON_HASH) {
|
if (current->parent == NULL || current->parent->type != JSON_HASH) {
|
||||||
json_error("} without {\n");
|
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");
|
json_error("} without hash value\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user