/soc/2013/ankitkv/gobjectification: 9dc3f5a25202: Return FALSE i...

Ankit Vani a at nevitus.org
Fri Aug 9 13:44:49 EDT 2013


Changeset: 9dc3f5a252020e37524cc4e3b43aa49f707aca62
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-08-09 23:13 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/9dc3f5a25202

Description:

Return FALSE if assertion fails

diffstat:

 libpurple/connection.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/libpurple/connection.c b/libpurple/connection.c
--- a/libpurple/connection.c
+++ b/libpurple/connection.c
@@ -395,7 +395,7 @@ gboolean
 {
 	PurpleConnectionPrivate *priv = PURPLE_CONNECTION_GET_PRIVATE(gc);
 
-	g_return_if_fail(priv != NULL);
+	g_return_val_if_fail(priv != NULL, FALSE);
 
 	return priv->wants_to_die;
 }



More information about the Commits mailing list