libidav/webdav.c

changeset 47
fbbbeed4ba8f
parent 46
0542668d0f26
child 48
08d5544c92fb
equal deleted inserted replaced
46:0542668d0f26 47:fbbbeed4ba8f
288 return resource; 288 return resource;
289 } 289 }
290 290
291 UcxList* parse_properties_string(DavContext *context, sstr_t str) { 291 UcxList* parse_properties_string(DavContext *context, sstr_t str) {
292 UcxList *proplist = NULL; 292 UcxList *proplist = NULL;
293 size_t nprops; 293 size_t nprops = 0;
294 sstr_t *props = sstrsplit(str, S(","), &nprops); 294 sstr_t *props = sstrsplit(str, S(","), &nprops);
295 for(int i=0;i<nprops;i++) { 295 for(int i=0;i<nprops;i++) {
296 sstr_t s = props[i]; 296 sstr_t s = props[i];
297 sstr_t nsname = sstrchr(s, ':'); 297 sstr_t nsname = sstrchr(s, ':');
298 if(nsname.length > 0) { 298 if(nsname.length > 0) {

mercurial