diff -r 8e5856182668 -r faa41a5e817d dav/scfg.c --- a/dav/scfg.c Sun Feb 28 18:14:28 2016 +0100 +++ b/dav/scfg.c Wed Mar 02 10:20:38 2016 +0100 @@ -62,6 +62,8 @@ } int load_sync_config() { + directories = ucx_map_new(8); + char *file = util_concat_path(ENV_HOME, ".dav/sync.xml"); struct stat s; @@ -86,8 +88,6 @@ return -1; } - directories = ucx_map_new(8); - int ret = 0; xmlNode *node = xmlDocGetRootElement(doc)->children; while(node) {