pidgin/pidgin

facebook: fixed possible NULL string comparison
facebook
2015-08-25, James Geboski
a276fbb29d85
Parents 0e87176c6292
Children 06ad6f6aa43a
facebook: fixed possible NULL string comparison
--- a/libpurple/protocols/facebook/api.c Mon Aug 24 19:57:50 2015 -0400
+++ b/libpurple/protocols/facebook/api.c Tue Aug 25 16:30:00 2015 -0400
@@ -823,7 +823,7 @@
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"));
}