From: <the...@us...> - 2006-05-08 17:59:31
|
Revision: 16140 Author: thekingant Date: 2006-05-07 10:40:42 -0700 (Sun, 07 May 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16140&view=rev Log Message: ----------- 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 Modified Paths: -------------- trunk/src/account.c Modified: trunk/src/account.c =================================================================== --- trunk/src/account.c 2006-05-07 14:14:09 UTC (rev 16139) +++ trunk/src/account.c 2006-05-07 17:40:42 UTC (rev 16140) @@ -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)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |