mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-23 18:40:17 +00:00
Detect misplaced comma within hash
This commit is contained in:
parent
948584126a
commit
f76bcab825
@ -229,6 +229,13 @@ again:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (current->parent->type == JSON_HASH) {
|
||||
if (current->parent->length == 0 || current->parent->values[current->parent->length - 1] == NULL) {
|
||||
*error = "Found comma in hash without a hash value";
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
current = current->parent;
|
||||
current_is = ',';
|
||||
goto again;
|
||||
|
Loading…
x
Reference in New Issue
Block a user