libpurple/protocols/jabber/parser.c

changeset 29025
2fdb2a69fb66
parent 28986
57ed606f526d
child 29026
72f3f28da29c
child 29057
a8de6baeee63
--- 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

mercurial