/soc/2015/jgeboski/facebook: 9e295f087bf6: facebook: fixed impro...

James Geboski <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 9e295f087bf698b6bc77492c10679c35ecadff11
Author:	 James Geboski <[email protected]>
Date:	 2015-06-24 18:13 -0400
Branch:	 facebook
URL: https://hg.pidgin.im/soc/2015/jgeboski/facebook/rev/9e295f087bf6

Description:

facebook: fixed improper data to fb_cb_api_error()

diffstat:

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

diffs (25 lines):

diff --git a/libpurple/protocols/facebook/facebook.c b/libpurple/protocols/facebook/facebook.c
--- a/libpurple/protocols/facebook/facebook.c
+++ b/libpurple/protocols/facebook/facebook.c
@@ -71,6 +71,7 @@ fb_cb_icon_fetch(PurpleHttpConnection *c
 	const gchar *name;
 	const gchar *str;
 	FbApi *api;
+	FbData *fata;
 	FbHttpParams *params;
 	GError *err = NULL;
 	gsize size;
@@ -82,10 +83,11 @@ fb_cb_icon_fetch(PurpleHttpConnection *c
 
 	acct = purple_buddy_get_account(bdy);
 	gc = purple_account_get_connection(acct);
-	api = purple_connection_get_protocol_data(gc);
+	fata = purple_connection_get_protocol_data(gc);
+	api = fb_data_get_api(fata);
 
 	if (!fb_http_error_chk(res, &err)) {
-		fb_cb_api_error(api, err, gc);
+		fb_cb_api_error(api, err, fata);
 		g_error_free(err);
 		return;
 	}

_______________________________________________
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.