Mercurial > pidgin
diff src/conversation.c @ 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 | feb3d21a7794 |
children | 9220c7490cd1 |
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)