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;