diff src/protocols/msn/history.c @ 10296:a7b2fd5efcf2

[gaim-migrate @ 11476] Some "random updates" updates from patch 1077274 by Felipe Contreras: "Some changes in the behaviour of slpcalls (for FT), free some unused structures and properly close switchboard connections." Looks good to me, and seems to have fixed a mysterious FT problem that I had been pretending didn't exist. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 02 Dec 2004 16:07:26 +0000
parents ab6636c5a136
children 1b48fbbd0e61
line wrap: on
line diff
--- a/src/protocols/msn/history.c	Thu Dec 02 13:03:23 2004 +0000
+++ b/src/protocols/msn/history.c	Thu Dec 02 16:07:26 2004 +0000
@@ -67,7 +67,12 @@
 void
 msn_history_add(MsnHistory *history, MsnTransaction *trans)
 {
-	GQueue *queue = history->queue;
+	GQueue *queue;
+
+	g_return_if_fail(history != NULL);
+	g_return_if_fail(trans   != NULL);
+
+	queue = history->queue;
 
 	trans->trId = history->trId++;