use memset for newly created DavCfgRepository

Mon, 29 Jan 2024 11:19:49 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 29 Jan 2024 11:19:49 +0100
changeset 803
008cc66ff9d6
parent 802
16e5b9d32754
child 804
1e24f187c362

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;

mercurial