changeset 10405:046be0a754b6

[gaim-migrate @ 11650] sf patch #1089987, from Evan Schoenberg - An oscar ft crash avoidsion committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 24 Dec 2004 00:51:06 +0000
parents ce098e226486
children 8ee13eecfee0
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Fri Dec 24 00:05:36 2004 +0000
+++ b/src/protocols/oscar/oscar.c	Fri Dec 24 00:51:06 2004 +0000
@@ -1993,9 +1993,16 @@
 
 static void oscar_xfer_cancel_recv(GaimXfer *xfer)
 {
-	struct aim_oft_info *oft_info = xfer->data;
-	GaimConnection *gc = oft_info->sess->aux_data;
-	OscarData *od = gc->proto_data;
+	struct aim_oft_info *oft_info;
+	GaimConnection *gc;
+	OscarData *od;
+
+	g_return_if_fail(xfer != NULL);
+	g_return_if_fail(xfer->data != NULL);
+
+	oft_info = xfer->data;
+	gc = oft_info->sess->aux_data;
+	od = gc->proto_data;
 
 	gaim_debug_info("oscar", "AAA - in oscar_xfer_cancel_recv\n");