pidgin: e7bbccbd: Fix this compile warning:

markdoliner at pidgin.im markdoliner at pidgin.im
Tue Feb 3 14:00:40 EST 2009


-----------------------------------------------------------------
Revision: e7bbccbdd28ee480316e5ea52820fcf82963ba2c
Ancestor: cb028bc0dfc348ceff085b6ff1fbcc692cf22e77
Author: markdoliner at pidgin.im
Date: 2009-02-03T18:53:04
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e7bbccbdd28ee480316e5ea52820fcf82963ba2c

Modified files:
        libpurple/protocols/msn/user.c

ChangeLog: 

Fix this compile warning:

user.c: In function 'msn_user_set_friendly_name':
user.c:183: warning: 'return' with no value, in function returning non-void

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/user.c	f1645197999aa48f09430f21f178eb62196aeeda
+++ libpurple/protocols/msn/user.c	2ab08652d861757559221bba9d1b908402ea3ac6
@@ -180,7 +180,7 @@ msn_user_set_friendly_name(MsnUser *user
 gboolean
 msn_user_set_friendly_name(MsnUser *user, const char *name)
 {
-	g_return_if_fail(user != NULL);
+	g_return_val_if_fail(user != NULL, FALSE);
 
 	if (user->friendly_name && name && !strcmp(user->friendly_name, name))
 		return FALSE;


More information about the Commits mailing list