# HG changeset patch # User Paul Aurich # Date 1259548830 0 # Node ID f043c5a07042e6876686ac5ba6d40f8743fcd0ce # Parent 2ac6d4c56a43e2105025747fb01dae2049ab8ac3 Use g_str_equal() diff -r 2ac6d4c56a43 -r f043c5a07042 libpurple/protocols/jabber/parser.c --- a/libpurple/protocols/jabber/parser.c Mon Nov 30 02:00:13 2009 +0000 +++ b/libpurple/protocols/jabber/parser.c Mon Nov 30 02:40:30 2009 +0000 @@ -145,7 +145,7 @@ JabberStream *js = user_data; if (error->level == XML_ERR_WARNING && error->message != NULL - && strcmp(error->message, "xmlns: URI vcard-temp is not absolute\n") == 0) + && g_str_equal(error->message, "xmlns: URI vcard-temp is not absolute\n")) /* * This message happens when parsing vcards, and is normal, so don't * bother logging it because people scare easily. @@ -153,7 +153,7 @@ return; if (error->level == XML_ERR_FATAL && error->message != NULL - && strcmp(error->message, "Extra content at the end of the document\n") == 0) + && g_str_equal(error->message, "Extra content at the end of the document\n")) /* * This is probably more annoying than the vcard-temp error; it occurs * because we disconnect in most cases without waiting for the receiving