diff src/protocols/silc/silc.c @ 10225:ecf3ce2e2ab1

[gaim-migrate @ 11357] This is mostly a patch from Felipe Contreras that eliminates MSN switchboard errors and fixes MSN buddy icon syncronization, with some tweaks by me. Thank Felipe if it works, blame me if something broke. I also fixed a couple of text markup escaping things, fixed a glib warning that was bugging me, fix a rare SILC crash, and make gtkstatusselector.c compile (but do nothing) with gtk < 2.4 committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 21 Nov 2004 17:48:09 +0000
parents 30e052ebb5ae
children a66cf83552dc
line wrap: on
line diff
--- a/src/protocols/silc/silc.c	Sun Nov 21 06:16:23 2004 +0000
+++ b/src/protocols/silc/silc.c	Sun Nov 21 17:48:09 2004 +0000
@@ -65,12 +65,16 @@
 silcgaim_set_status(GaimAccount *account, GaimStatus *status)
 {
 	GaimConnection *gc = gaim_account_get_connection(account);
-	SilcGaim sg = gc->proto_data;
+	SilcGaim sg;
 	SilcUInt32 mode;
 	SilcBuffer idp;
 	unsigned char mb[4];
 	const char *state;
 
+	g_return_if_fail(gc != NULL);
+
+	sg = gc->proto_data;
+
 	if ((status == NULL) || (sg->conn == NULL))
 		return;