# HG changeset patch # User Mark Doliner # Date 1147023642 0 # Node ID 74033e0831bc002f4cb19d2378db23508e2bc637 # Parent ed73ef86f40c87fafa7959f5671451036252d2f6 [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 diff -r ed73ef86f40c -r 74033e0831bc src/account.c --- 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)) {