changeset 14691:dbcdef1ab5af

[gaim-migrate @ 17443] Fix Coverity CID 279 - Variable "name" tracked as NULL was passed to a function that dereferences it. Groups can't be renamed to NULL anyway. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 07 Oct 2006 17:25:21 +0000
parents 97df6766c945
children dd0c43d42394
files console/gntblist.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/console/gntblist.c	Sat Oct 07 17:21:31 2006 +0000
+++ b/console/gntblist.c	Sat Oct 07 17:25:21 2006 +0000
@@ -315,6 +315,7 @@
 			gaim_blist_add_group(grp, NULL);
 		}
 		gaim_blist_add_chat(chat, grp, NULL);
+		gaim_blist_alias_chat(chat, alias);
 	}
 }
 
@@ -833,7 +834,7 @@
 		serv_alias_buddy((GaimBuddy*)node);
 	} else if (GAIM_BLIST_NODE_IS_CHAT(node))
 		gaim_blist_alias_chat((GaimChat*)node, name);
-	else if (GAIM_BLIST_NODE_IS_GROUP(node))
+	else if (GAIM_BLIST_NODE_IS_GROUP(node) && (name != NULL))
 		gaim_blist_rename_group((GaimGroup*)node, name);
 	else
 		g_return_if_reached();