Ticket #1183: fix-xmlfield-firstchild-on-assembling.diff

File fix-xmlfield-firstchild-on-assembling.diff, 478 bytes (added by dgollub, 2 years ago)

OpenSync? patch to fix the order in xmlfield, the first child got overwritten by the last child all the time

  • opensync/xmlformat/opensync_xmlfield.c

     
    6565                xmlfield->prev = parent->child; 
    6666                if (xmlfield->prev) 
    6767                        xmlfield->prev->next = xmlfield; 
    68                 parent->child = xmlfield; 
     68                if (!parent->child) // This breaks xmlformat_is_sorted testcase 
     69                        parent->child = xmlfield; 
    6970        } 
    7071 
    7172