Skip to content

Commit 02ec060

Browse files
committed
Fix bug in configuration parsing
1 parent 6c7fafa commit 02ec060

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/configuration_xml.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,11 @@ void parseDimensions(mapcache_context *ctx, ezxml_t node, mapcache_tileset *tile
158158
}
159159
}
160160

161+
tileset->assembly_threaded_fetching_maxzoom = -1;
161162
dimension_node = ezxml_child(node,"assembly_threaded_fetching");
162163
if (dimension_node) {
163164
if (dimension_node && dimension_node->txt) {
164-
if (!strcmp(dimension_node->txt,"false")) {
165+
if (!strcmp(dimension_node->txt,"true")) {
165166
int maxzoom = INT_MAX;
166167
char * smaxzoom = (char*)ezxml_attr(dimension_node,"maxzoom");;
167168
if (smaxzoom && *smaxzoom) {
@@ -174,13 +175,11 @@ void parseDimensions(mapcache_context *ctx, ezxml_t node, mapcache_tileset *tile
174175
}
175176
}
176177
tileset->assembly_threaded_fetching_maxzoom = maxzoom;
177-
} else if (strcmp(dimension_node->txt,"true")) {
178+
} else if (strcmp(dimension_node->txt,"false")) {
178179
ctx->set_error(ctx,400,"failed to parse <assembly_threaded_fetching>"
179180
" (%s), expecting \"true\" or \"false\"",dimension_node->txt);
180181
return;
181182
}
182-
} else {
183-
tileset->assembly_threaded_fetching_maxzoom = -1;
184183
}
185184
}
186185

0 commit comments

Comments
 (0)