127:7072a2b4ae35 | 128:649eb328674a |
---|---|
218 char *pns = "DAV:"; | 218 char *pns = "DAV:"; |
219 if(pname) { | 219 if(pname) { |
220 DavNamespace *ns = dav_get_namespace_s( | 220 DavNamespace *ns = dav_get_namespace_s( |
221 ctx, | 221 ctx, |
222 sstrn(prefixed_name, pname-prefixed_name)); | 222 sstrn(prefixed_name, pname-prefixed_name)); |
223 pns = ns->name; | 223 if(ns) { |
224 pname++; | 224 pns = ns->name; |
225 pname++; | |
226 } else { | |
227 pns = NULL; | |
228 pname = NULL; | |
229 } | |
225 } else { | 230 } else { |
226 pname = prefixed_name; | 231 pname = prefixed_name; |
227 } | 232 } |
228 *ns = pns; | 233 *ns = pns; |
229 *name = pname; | 234 *name = pname; |
302 } | 307 } |
303 ucx_buffer_free(rpbuf); | 308 ucx_buffer_free(rpbuf); |
304 return error; | 309 return error; |
305 } | 310 } |
306 | 311 |
307 UcxList* propfind_stack_push(UcxList *stack, DavResource *children) { | 312 static UcxList* propfind_stack_push(UcxList *stack, DavResource *children) { |
308 while(children) { | 313 while(children) { |
309 if(children->iscollection) { | 314 if(children->iscollection) { |
310 stack = ucx_list_prepend(stack, children); | 315 stack = ucx_list_prepend(stack, children); |
311 } | 316 } |
312 children = children->next; | 317 children = children->next; |