Ticket #923: xmlformat_sort_2.diff

File xmlformat_sort_2.diff, 724 bytes (added by paule, 3 years ago)

Updated patch (supercedes xmlformat.c.diff)

  • src/xmlformat.c

     
    6767                return FALSE; 
    6868        } 
    6969 
     70        if(!osync_xmlformat_sort(xmlformat, error)) { 
     71                osync_trace(TRACE_EXIT_ERROR, "%s: %s", __func__, osync_error_print(error)); 
     72                return FALSE; 
     73        } 
     74 
    7075        *output = (char *) xmlformat; 
    7176        *outpsize = osync_xmlformat_size(); 
    7277 
     
    303308 
    304309        osync_trace(TRACE_ENTRY, "%s(%p, %i)", __func__, data, size, error); 
    305310 
     311        if (!osync_xmlformat_sort((OSyncXMLFormat *)data, error)) 
     312                goto error; 
     313 
    306314        fieldlist = osync_xmlformat_search_field((OSyncXMLFormat *)data, attribute, error, NULL); 
    307315        if (!fieldlist) 
    308316                goto error;