changeset 31537:ce1bd217ce3d

Everyone provides a callback here. Might as well make it required.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Tue, 04 Jan 2011 23:36:56 +0000
parents b55b3d34846c
children b3a54678e51a
files libpurple/protocols/msn/soap.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/soap.c	Tue Jan 04 09:12:59 2011 +0000
+++ b/libpurple/protocols/msn/soap.c	Tue Jan 04 23:36:56 2011 +0000
@@ -141,8 +141,7 @@
 {
 	MsnSoapRequest *req = item;
 
-	if (req->cb)
-		req->cb(req->message, NULL, req->cb_data);
+	req->cb(req->message, NULL, req->cb_data);
 
 	msn_soap_request_destroy(req, FALSE);
 }
@@ -269,6 +268,7 @@
 	MsnSoapCallback cb, gpointer cb_data)
 {
 	g_return_if_fail(message != NULL);
+	g_return_if_fail(cb != NULL);
 
 	msn_soap_message_send_internal(session, message, host, path, secure,
 		cb, cb_data, FALSE);