libidav/davqlexec.c

changeset 157
8dccc3063e28
parent 150
37fb12574acd
child 185
cd42cccee550
equal deleted inserted replaced
156:4b3aecafd6be 157:8dccc3063e28
447 447
448 DavResource *selroot = dav_resource_new(sn, path.ptr); 448 DavResource *selroot = dav_resource_new(sn, path.ptr);
449 449
450 UcxList *stack = NULL; // stack with DavResource* elements 450 UcxList *stack = NULL; // stack with DavResource* elements
451 // initialize the stack with the requested resource 451 // initialize the stack with the requested resource
452 DavQLRes *r = ucx_mempool_malloc(mp, sizeof(DavQLRes)); 452 DavQLRes *res = ucx_mempool_malloc(mp, sizeof(DavQLRes));
453 r->resource = selroot; 453 res->resource = selroot;
454 r->depth = 0; 454 res->depth = 0;
455 stack = ucx_list_prepend(stack, r); 455 stack = ucx_list_prepend(stack, res);
456 456
457 // reuseable response buffer 457 // reuseable response buffer
458 UcxBuffer *rpbuf = ucx_buffer_new(NULL, 4096, UCX_BUFFER_AUTOEXTEND); 458 UcxBuffer *rpbuf = ucx_buffer_new(NULL, 4096, UCX_BUFFER_AUTOEXTEND);
459 if(!rpbuf) { 459 if(!rpbuf) {
460 // TODO: cleanup 460 // TODO: cleanup

mercurial