fix missing namespaceinfo map initializataion

Fri, 20 Sep 2019 20:27:05 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 20 Sep 2019 20:27:05 +0200
changeset 645
ad61c1654dce
parent 644
a38b15061848
child 646
37a8bfae995e

fix missing namespaceinfo map initializataion

libidav/webdav.c file | annotate | diff | comparison | revisions
--- a/libidav/webdav.c	Tue Sep 17 21:21:36 2019 +0200
+++ b/libidav/webdav.c	Fri Sep 20 20:27:05 2019 +0200
@@ -63,6 +63,10 @@
         dav_context_destroy(context);
         return NULL;
     }
+    context->namespaceinfo = ucx_map_new(16);
+    if(!context->namespaceinfo) {
+        dav_context_destroy(context);
+    }
     context->keys = ucx_map_new(16);
     if(!context->keys) {
         dav_context_destroy(context);
@@ -122,6 +126,9 @@
         }
         ucx_map_free(ctx->namespaces);
     }
+    if(ctx->namespaceinfo) {
+        // TODO: implement
+    }
     if(ctx->keys) {
         UcxMapIterator i = ucx_map_iterator(ctx->keys);
         UcxKey k;

mercurial