Mercurial > pidgin
changeset 7088:7fd2fd7c6980
[gaim-migrate @ 7653]
Added sanity checks to gaim_conversation_new().
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 30 Sep 2003 23:24:13 +0000 |
parents | bbf7f4604140 |
children | 2cd3756a637b |
files | src/conversation.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/conversation.c Tue Sep 30 23:17:49 2003 +0000 +++ b/src/conversation.c Tue Sep 30 23:24:13 2003 +0000 @@ -789,8 +789,9 @@ { GaimConversation *conv; - if (type == GAIM_CONV_UNKNOWN) - return NULL; + g_return_val_if_fail(type != GAIM_CONV_UNKNOWN, NULL); + g_return_val_if_fail(account != NULL, NULL); + g_return_val_if_fail(name != NULL, NULL); /* Check if this conversation already exists. */ if ((conv = gaim_find_conversation_with_account(name, account)) != NULL)