/soc/2012/michael/android: 99ef5762db86: Added tests to rename_b...

Michael Zangl michael at soc.pidgin.im
Wed Aug 15 06:14:15 EDT 2012


Changeset: 99ef5762db86995a14ee0e098c3ef9eb1c4e996b
Author:	 Michael Zangl <michael at soc.pidgin.im>
Date:	 2012-08-11 11:08 +0200
Branch:	 soc.2012.android
URL: http://hg.pidgin.im/soc/2012/michael/android/rev/99ef5762db86

Description:

Added tests to rename_buddy so that parent may not be null.

diffstat:

 libpurple/blist.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff --git a/libpurple/blist.c b/libpurple/blist.c
--- a/libpurple/blist.c
+++ b/libpurple/blist.c
@@ -969,6 +969,8 @@ void purple_blist_rename_buddy(PurpleBud
 	GHashTable *account_buddies;
 
 	g_return_if_fail(buddy != NULL);
+	g_return_if_fail(((PurpleBlistNode *)buddy)->parent != NULL);
+	g_return_if_fail(((PurpleBlistNode *)buddy)->parent->parent != NULL);
 
 	hb = g_new(struct _purple_hbuddy, 1);
 	hb->name = (gchar *)purple_normalize(buddy->account, buddy->name);



More information about the Commits mailing list