mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Make the same null pointer fix in jsontool.cpp as in geojson.cpp
This commit is contained in:
+1
-1
@@ -380,7 +380,7 @@ void process(FILE *fp, const char *fname) {
|
|||||||
int is_geometry = 1;
|
int is_geometry = 1;
|
||||||
|
|
||||||
if (j->parent != NULL) {
|
if (j->parent != NULL) {
|
||||||
if (j->parent->type == JSON_ARRAY) {
|
if (j->parent->type == JSON_ARRAY && j->parent->parent != NULL) {
|
||||||
if (j->parent->parent->type == JSON_HASH) {
|
if (j->parent->parent->type == JSON_HASH) {
|
||||||
json_object *geometries = json_hash_get(j->parent->parent, "geometries");
|
json_object *geometries = json_hash_get(j->parent->parent, "geometries");
|
||||||
if (geometries != NULL) {
|
if (geometries != NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user