# HG changeset patch # User Christian Hammond # Date 1053598854 0 # Node ID bae3c48b9b4cd3cd439154c67e51ec65cf33c429 # Parent e8e498255369e5208e8ff6a22a69e5110a6f5007 [gaim-migrate @ 5874] Fixed a debug warning. committer: Tailor Script diff -r e8e498255369 -r bae3c48b9b4c src/protocols/msn/msg.c --- a/src/protocols/msn/msg.c Thu May 22 05:36:47 2003 +0000 +++ b/src/protocols/msn/msg.c Thu May 22 10:20:54 2003 +0000 @@ -392,16 +392,19 @@ msn_message_set_content_type(MsnMessage *msg, const char *type) { g_return_if_fail(msg != NULL); - g_return_if_fail(type != NULL); if (msg->content_type != NULL) { msg->size -= strlen(msg->content_type); g_free(msg->content_type); } - msg->content_type = g_strdup(type); + if (type != NULL) { + msg->content_type = g_strdup(type); - msg->size += strlen(type); + msg->size += strlen(type); + } + else + msg->content_type = NULL; } const char *