/soc/2015/jgeboski/facebook: a276fbb29d85: facebook: fixed possi...
James Geboski
jgeboski at gmail.com
Tue Aug 25 20:06:39 EDT 2015
Changeset: a276fbb29d859fc7fa6cafe078e41ec97cfaf658
Author: James Geboski <jgeboski at gmail.com>
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"));
}
More information about the Commits
mailing list