Mon, 29 Jan 2024 11:19:49 +0100
use memset for newly created DavCfgRepository
libidav/config.c | file | annotate | diff | comparison | revisions |
--- a/libidav/config.c Sun Jan 28 13:10:18 2024 +0100 +++ b/libidav/config.c Mon Jan 29 11:19:49 2024 +0100 @@ -392,6 +392,7 @@ DavCfgRepository* dav_repository_new(DavConfig *config) { DavCfgRepository *repo = cxMalloc(config->mp->allocator, sizeof(DavCfgRepository)); + memset(repo, 0, sizeof(DavCfgRepository)); repo->decrypt_name.value = false; repo->decrypt_content.value = true; repo->decrypt_properties.value = false;