/soc/2015/jgeboski/facebook: a276fbb29d85: facebook: fixed possi...

James Geboski <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: a276fbb29d859fc7fa6cafe078e41ec97cfaf658
Author:	 James Geboski <[email protected]>
Date:	 2015-08-25 16:30 -0400
Branch:	 facebook
URL: https://hg.pidgin.im/soc/2015/jgeboski/facebook/rev/a276fbb29d85

Description:

facebook: fixed possible NULL string comparison

diffstat:

 libpurple/protocols/facebook/api.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/libpurple/protocols/facebook/api.c b/libpurple/protocols/facebook/api.c
--- a/libpurple/protocols/facebook/api.c
+++ b/libpurple/protocols/facebook/api.c
@@ -823,7 +823,7 @@ fb_api_cb_http_bool(PurpleHttpConnection
 
 	hata = purple_http_response_get_data(res, NULL);
 
-	if (g_ascii_strcasecmp(hata, "true") != 0) {
+	if (!purple_strequal(hata, "true")) {
 		fb_api_error(api, FB_API_ERROR,
 		             _("Failed generic API operation"));
 	}

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.