changeset 27973:2e6482e80a16

Returning FALSE from a function that is suposed to return a PurpleChat * is very wrong.
author Etan Reisner <pidgin@unreliablesource.net>
date Fri, 10 Jul 2009 04:35:20 +0000
parents dbdad6bbf382
children 22dd196b9a0c
files libpurple/blist.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/blist.c	Fri Jul 10 02:44:50 2009 +0000
+++ b/libpurple/blist.c	Fri Jul 10 04:35:20 2009 +0000
@@ -1278,8 +1278,8 @@
 	PurpleBlistUiOps *ops = purple_blist_get_ui_ops();
 	PurpleChat *chat;
 
-	g_return_val_if_fail(account != NULL, FALSE);
-	g_return_val_if_fail(components != NULL, FALSE);
+	g_return_val_if_fail(account != NULL, NULL);
+	g_return_val_if_fail(components != NULL, NULL);
 
 	chat = g_new0(PurpleChat, 1);
 	chat->account = account;