diff pidgin/gtkblist.c @ 23925:fd0e8c6ffa4b

Path from Toby Schaffer to fix a null ptr deref when adding a buddy. Fixes #6821.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 28 Aug 2008 00:43:05 +0000
parents 7076f4e965c5
children 0b41ff5ebd96 e0a596a0a020
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Wed Aug 27 16:45:04 2008 +0000
+++ b/pidgin/gtkblist.c	Thu Aug 28 00:43:05 2008 +0000
@@ -6483,7 +6483,7 @@
 		purple_account_add_buddy(data->account, b);
 
 		/* Offer to merge people with the same alias. */
-		if (whoalias != NULL)
+		if (whoalias != NULL && g != NULL)
 			gtk_blist_auto_personize((PurpleBlistNode *)g, whoalias);
 
 		/*