diff -r da2b0cc44e4f -r c5bbae4b3cca dav/scfg.c --- a/dav/scfg.c Wed Mar 13 12:52:24 2019 +0100 +++ b/dav/scfg.c Wed Mar 13 15:05:40 2019 +0100 @@ -413,7 +413,7 @@ return 1; } - SyncDirectory *dir = malloc(sizeof(SyncDirectory)); + SyncDirectory *dir = calloc(1, sizeof(SyncDirectory)); dir->name = strdup(name); dir->path = scfg_create_path(path); dir->collection = collection ? strdup(collection) : NULL;