Mercurial > pidgin.yaz
changeset 11727:8657ad65e257
[gaim-migrate @ 14018]
Add some g_return_if_fails, just in cases
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 22 Oct 2005 23:56:28 +0000 |
parents | 6e0986c82bc5 |
children | 89e416ac9ef7 |
files | src/savedstatuses.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/savedstatuses.c Sat Oct 22 22:58:16 2005 +0000 +++ b/src/savedstatuses.c Sat Oct 22 23:56:28 2005 +0000 @@ -503,6 +503,8 @@ { GList *accounts; + g_return_if_fail(saved_status != NULL); + accounts = gaim_accounts_get_all_active(); while (accounts != NULL) @@ -522,6 +524,9 @@ const GList *status_types; GaimStatusType *status_type; + g_return_if_fail(saved_status != NULL); + g_return_if_fail(account != NULL); + /* Find the status type that matches the given primitive */ status_types = gaim_account_get_status_types(account); while (status_types != NULL)