changeset 20161:0077c1f21f3d

Patch from db42. Fixes #3191
author Sean Egan <seanegan@gmail.com>
date Tue, 18 Sep 2007 23:22:13 +0000
parents b6517519d719
children 181bcc9a2888
files pidgin/gtkblist.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Tue Sep 18 22:27:13 2007 +0000
+++ b/pidgin/gtkblist.c	Tue Sep 18 23:22:13 2007 +0000
@@ -5682,7 +5682,8 @@
 		if (*whoalias == '\0')
 			whoalias = NULL;
 
-		if ((g = purple_find_group(grp)) == NULL)
+		g = NULL;
+		if ((grp != NULL) && (*grp != '\0') && ((g = purple_find_group(grp)) == NULL))
 		{
 			g = purple_group_new(grp);
 			purple_blist_add_group(g, NULL);
@@ -5892,7 +5893,8 @@
 
 	group_name = pidgin_text_combo_box_entry_get_text(data->group_combo);
 
-	if ((group = purple_find_group(group_name)) == NULL)
+	group = NULL;
+	if ((group_name != NULL) && (*group_name != '\0') && ((group = purple_find_group(group_name)) == NULL))
 	{
 		group = purple_group_new(group_name);
 		purple_blist_add_group(group, NULL);