changeset 12381:29e237c4141b

[gaim-migrate @ 14685] g_strdup(NULL) returns NULL, so this is neater, and should be just as safe as before committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 07 Dec 2005 01:47:31 +0000
parents 553dd80f6130
children cfc808463763
files src/protocols/msn/userlist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/userlist.c	Wed Dec 07 01:32:19 2005 +0000
+++ b/src/protocols/msn/userlist.c	Wed Dec 07 01:47:31 2005 +0000
@@ -87,7 +87,7 @@
 
 	pa = g_new0(MsnPermitAdd, 1);
 	pa->who = g_strdup(passport);
-	pa->friendly = (friendly != NULL) ? g_strdup(friendly) : NULL;
+	pa->friendly = g_strdup(friendly);
 	pa->gc = gc;
 
 	if (friendly != NULL)