diff src/protocols/oscar/stats.c @ 4871:0b64f386a7b8

[gaim-migrate @ 5201] Nathan is SO the man. He pointed out that oscar was leaking about 500k per IM. No, just kidding. But this should help Gaim leak a little less. It was all Nathan. He is so S-M-R-T. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 23 Mar 2003 07:59:17 +0000
parents 07283934dedd
children
line wrap: on
line diff
--- a/src/protocols/oscar/stats.c	Sun Mar 23 07:38:55 2003 +0000
+++ b/src/protocols/oscar/stats.c	Sun Mar 23 07:59:17 2003 +0000
@@ -8,15 +8,16 @@
 
 static int reportinterval(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
 {
+	int ret = 0;
+	aim_rxcallback_t userfunc;
 	fu16_t interval;
-	aim_rxcallback_t userfunc;
 
 	interval = aimbs_get16(bs);
 
 	if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype)))
-		return userfunc(sess, rx, interval);
+		ret = userfunc(sess, rx, interval);
 
-	return 0;
+	return ret;
 }
 
 static int snachandler(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)