diff -r e4e23a88d4de -r e3839719b079 libidav/webdav.c --- a/libidav/webdav.c Thu Jun 05 15:39:51 2014 +0200 +++ b/libidav/webdav.c Thu Jun 05 16:53:53 2014 +0200 @@ -77,7 +77,7 @@ return NULL; } idavns->prefix = "idav"; - davns->name = DAV_NS; + idavns->name = DAV_NS; if(ucx_map_cstr_put(context->namespaces, "idav", idavns)) { free(davns); free(idavns); @@ -300,9 +300,8 @@ nsname.length--; DavProperty *dp = malloc(sizeof(DavProperty)); - sstr_t pre = sstrdup(sstrtrim(nspre)); - dp->ns = dav_get_namespace(context, pre.ptr); - free(pre.ptr); + sstr_t pre = sstrtrim(nspre); + dp->ns = dav_get_namespace_s(context, pre); dp->name = sstrdup(nsname).ptr; if(dp->ns && dp->name) { proplist = ucx_list_append(proplist, dp);