pidgin: bd56a115: Use g_str_equal()

darkrain42 at pidgin.im darkrain42 at pidgin.im
Sun Nov 29 21:45:45 EST 2009


-----------------------------------------------------------------
Revision: bd56a115b35ba5922e5f9c93840d0868a4978b09
Ancestor: 88573db2461e898ff03b3fa5f7ebd922289ed3b5
Author: darkrain42 at pidgin.im
Date: 2009-11-30T02:40:30
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/bd56a115b35ba5922e5f9c93840d0868a4978b09

Modified files:
        libpurple/protocols/jabber/parser.c

ChangeLog: 

Use g_str_equal()

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/parser.c	3ebc7e996653fc26f80e716d77113fe48386e329
+++ libpurple/protocols/jabber/parser.c	8e8389c03f6a29eb750a930ee4f14ddbee20f6cd
@@ -145,7 +145,7 @@ jabber_parser_structured_error_handler(v
 	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 @@ jabber_parser_structured_error_handler(v
 		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


More information about the Commits mailing list