im.pidgin.pidgin: 30553187b82f795a4c65a0bf7f1e7e6c3fc4ff57

sadrul at pidgin.im sadrul at pidgin.im
Mon Nov 26 00:45:33 EST 2007


-----------------------------------------------------------------
Revision: 30553187b82f795a4c65a0bf7f1e7e6c3fc4ff57
Ancestor: c77aee16184e888f78cd2e43d89ecb6202938d9b
Author: sadrul at pidgin.im
Date: 2007-11-26T05:36:09
Branch: im.pidgin.pidgin

Modified files:
        libpurple/prpl.c

ChangeLog: 

old_status can be NULL when [de]activating a non-exclusive status.

-------------- next part --------------
============================================================
--- libpurple/prpl.c	81d8dcb3b154836fc2ad42d35f6a905e3241004b
+++ libpurple/prpl.c	0949bb9d1629db6a498bb1da3fc532329c2704a0
@@ -258,8 +258,8 @@ purple_prpl_change_account_status(Purple
 								PurpleStatus *old_status, PurpleStatus *new_status)
 {
 	g_return_if_fail(account    != NULL);
-	g_return_if_fail(old_status != NULL);
 	g_return_if_fail(new_status != NULL);
+	g_return_if_fail(!purple_status_is_exclusive(new_status) || old_status != NULL);
 
 	do_prpl_change_account_status(account, old_status, new_status);
 


More information about the Commits mailing list