diff -r 7072a2b4ae35 -r 649eb328674a libidav/webdav.c --- a/libidav/webdav.c Tue Jun 02 10:07:20 2015 +0200 +++ b/libidav/webdav.c Tue Jun 02 20:57:23 2015 +0200 @@ -220,8 +220,13 @@ DavNamespace *ns = dav_get_namespace_s( ctx, sstrn(prefixed_name, pname-prefixed_name)); - pns = ns->name; - pname++; + if(ns) { + pns = ns->name; + pname++; + } else { + pns = NULL; + pname = NULL; + } } else { pname = prefixed_name; } @@ -304,7 +309,7 @@ return error; } -UcxList* propfind_stack_push(UcxList *stack, DavResource *children) { +static UcxList* propfind_stack_push(UcxList *stack, DavResource *children) { while(children) { if(children->iscollection) { stack = ucx_list_prepend(stack, children);