Changeset 1542

Show
Ignore:
Timestamp:
12/16/06 12:24:43 (2 years ago)
Author:
dgollub
Message:

Only compare nodes with the same node name.
007-name_comparasion_fix.patch XmpmPatches?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/formats/vformats-xml/xml-support.c

    r1459 r1542  
    119119                        if (!strcmp("UnknownParam", (char*)rightnode->name)) 
    120120                                continue; 
     121 
     122                        osync_trace(TRACE_INTERNAL, "leftnode %s, rightnode %s", leftnode->name, rightnode->name); 
     123 
     124                       /* Compare only nodes with same name. Skip if 
     125                        * the names are different 
     126                        */ 
     127                       if (strcmp(leftnode->name, rightnode->name)) 
     128                               continue; 
     129 
    121130                        char *rightcontent = (char*)xmlNodeGetContent(rightnode); 
    122131 
    123                         osync_trace(TRACE_INTERNAL, "leftnode %s, rightnode %s", leftnode->name, rightnode->name); 
    124132                        osync_trace(TRACE_SENSITIVE, "leftcontent %s, rightcontent %s\n", leftcontent, rightcontent); 
    125133