Fri, 02 Aug 2019 21:40:05 +0200
fix bug in davqlexec introduced by refactoring
libidav/davqlexec.c | file | annotate | diff | comparison | revisions |
--- a/libidav/davqlexec.c Sun Jul 28 13:07:53 2019 +0200 +++ b/libidav/davqlexec.c Fri Aug 02 21:40:05 2019 +0200 @@ -404,7 +404,17 @@ } if(node) { sstr_t key = dav_property_key(field->ns, field->name); - ucx_map_sstr_put(new_properties, key, node); + + DavNamespace *namespace = dav_session_malloc(sn, sizeof(DavNamespace)); + namespace->prefix = NULL; + namespace->name = dav_session_strdup(sn, field->ns); + + DavProperty *prop = dav_session_malloc(sn, sizeof(DavProperty)); + prop->name = dav_session_strdup(sn, field->name); + prop->ns = namespace; + prop->value = node; + + ucx_map_sstr_put(new_properties, key, prop); free(key.ptr); } } else {