dav/finfo.c

changeset 527
d0e37224eba1
parent 526
e3c0440bd599
child 539
8deb52292c99
--- a/dav/finfo.c	Sun Mar 17 18:11:31 2019 +0100
+++ b/dav/finfo.c	Tue Mar 19 19:14:48 2019 +0100
@@ -174,6 +174,8 @@
         attributes = calloc(1, sizeof(XAttributes));
         attributes->hash = hash ? strdup(hash) : NULL;
         attributes->nattr = count;
+        attributes->names = calloc(count, sizeof(char*));
+        attributes->values = calloc(count, sizeof(sstr_t));
         int i=0;
         UCX_FOREACH(elm, names) {
             attributes->names[i] = elm->data;

mercurial