mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-05 09:55:41 +02:00
Detect misplaced comma within hash
This commit is contained in:
@@ -229,6 +229,13 @@ again:
|
|||||||
return NULL;
|
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 = current->parent;
|
||||||
current_is = ',';
|
current_is = ',';
|
||||||
goto again;
|
goto again;
|
||||||
|
|||||||
Reference in New Issue
Block a user