src/protocols/silc/silc.c

changeset 10225
0dfea1bc8695
parent 10050
78e480f768f2
child 10246
aa5bff72f94c
--- 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;
 

mercurial