changeset 13729:74033e0831bc

[gaim-migrate @ 16140] Get rid of an assertion warning when saving an account without an alias that did not previous have an alias. Yay for --enable-fatal-asserts committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 07 May 2006 17:40:42 +0000
parents ed73ef86f40c
children 2eea3265dbe6
files src/account.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/account.c	Sun May 07 14:14:09 2006 +0000
+++ b/src/account.c	Sun May 07 17:40:42 2006 +0000
@@ -1205,6 +1205,13 @@
 {
 	g_return_if_fail(account != NULL);
 
+	/*
+	 * Do nothing if alias and account->alias are both NULL.  Or if
+	 * they're the exact same string.
+	 */
+	if (alias == account->alias)
+		return;
+
 	if ((!alias && account->alias) || (alias && !account->alias) ||
 			g_utf8_collate(account->alias, alias))
 	{