View | Details | Raw Unified | Return to bug 52559
Collapse All | Expand All

(-)2.2.21/modules/dav/main/props.c (-4 / +4 lines)
Lines 615-627 DAV_DECLARE(dav_get_props_result) dav_get_allprops Link Here
615
        if (propdb->db != NULL) {
615
        if (propdb->db != NULL) {
616
            dav_xmlns_info *xi = dav_xmlns_create(propdb->p);
616
            dav_xmlns_info *xi = dav_xmlns_create(propdb->p);
617
            dav_prop_name name;
617
            dav_prop_name name;
618
            dav_error *err;
618
619
619
            /* define (up front) any namespaces the db might need */
620
            /* define (up front) any namespaces the db might need */
620
            (void) (*db_hooks->define_namespaces)(propdb->db, xi);
621
            (void) (*db_hooks->define_namespaces)(propdb->db, xi);
621
622
622
            /* get the first property name, beginning the scan */
623
            /* get the first property name, beginning the scan */
623
            (void) (*db_hooks->first_name)(propdb->db, &name);
624
            err = (*db_hooks->first_name)(propdb->db, &name);
624
            while (name.ns != NULL) {
625
            while (err == NULL && name.ns != NULL) {
625
626
626
                /*
627
                /*
627
                ** We also look for <DAV:getcontenttype> and
628
                ** We also look for <DAV:getcontenttype> and
Lines 640-646 DAV_DECLARE(dav_get_props_result) dav_get_allprops Link Here
640
                }
641
                }
641
642
642
                if (what == DAV_PROP_INSERT_VALUE) {
643
                if (what == DAV_PROP_INSERT_VALUE) {
643
                    dav_error *err;
644
                    int found;
644
                    int found;
645
645
646
                    if ((err = (*db_hooks->output_value)(propdb->db, &name,
646
                    if ((err = (*db_hooks->output_value)(propdb->db, &name,
Lines 659-665 DAV_DECLARE(dav_get_props_result) dav_get_allprops Link Here
659
                }
659
                }
660
660
661
              next_key:
661
              next_key:
662
                (void) (*db_hooks->next_name)(propdb->db, &name);
662
                err = (*db_hooks->next_name)(propdb->db, &name);
663
            }
663
            }
664
664
665
            /* all namespaces have been entered into xi. generate them into
665
            /* all namespaces have been entered into xi. generate them into

Return to bug 52559