diff libpurple/blist.c @ 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 75acd9ad14be
children 429fce11f244
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;