Skip to content

Commit 328ddc4

Browse files
committed
bugfix
1 parent b57a012 commit 328ddc4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/cache_sqlite.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,7 @@ static void _mapcache_cache_sqlite_configuration_parse_xml(mapcache_context *ctx
874874
{
875875
ezxml_t cur_node;
876876
mapcache_cache_sqlite *cache;
877+
char *attr;
877878
sqlite3_initialize();
878879
sqlite3_config(SQLITE_CONFIG_MULTITHREAD);
879880
cache = (mapcache_cache_sqlite*) pcache;
@@ -885,14 +886,13 @@ static void _mapcache_cache_sqlite_configuration_parse_xml(mapcache_context *ctx
885886
ctx->set_error(ctx, 500, "sqlite config <dbname_template> not supported anymore, use a \"multi-sqlite3\" cache type");
886887
return;
887888
}
889+
cache->allow_path_in_dim = 0;
890+
attr = (char*)ezxml_attr(node,"allow_path_in_dim");
891+
if(attr && *attr && !strcmp(attr,"yes")) {
892+
cache->allow_path_in_dim = 1;
893+
}
888894
if ((cur_node = ezxml_child(node, "dbfile")) != NULL) {
889895
char *fmt;
890-
char *attr;
891-
cache->allow_path_in_dim = 0;
892-
attr = (char*)ezxml_attr(cur_node,"allow_path_in_dim");
893-
if(attr && *attr && !strcmp(attr,"yes")) {
894-
cache->allow_path_in_dim = 1;
895-
}
896896
cache->dbfile = apr_pstrdup(ctx->pool, cur_node->txt);
897897
fmt = (char*)ezxml_attr(cur_node,"x_fmt");
898898
if(fmt && *fmt) {

0 commit comments

Comments
 (0)