All pastes #166902 Raw Edit

Untitled

public text v1 · immutable
·published 2006-09-11 12:45 UTC
rendered paste body
Index: libsyncml/parser/sml_xml_parse.c
===================================================================
--- libsyncml/parser/sml_xml_parse.c    (revision 194)
+++ libsyncml/parser/sml_xml_parse.c    (working copy)
@@ -791,7 +791,7 @@
        }
 
        /* some clients set the contentype in the item, don't overwrite it with NULL */
-       if ((*cmd)->private.change.item->contenttype) {
+       if ((*cmd)->private.change.item->contenttype == NULL) {
                if (contenttype) {
                        (*cmd)->private.change.item->contenttype = contenttype;
                        contenttype = NULL;