changeset 5210:39bb2a35f8d9

[gaim-migrate @ 5580] alias is supposed to be NULL if it's blank committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 26 Apr 2003 05:31:26 +0000
parents 3a9d257628cb
children 0241d6b6702d
files src/list.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/list.c	Fri Apr 25 23:26:37 2003 +0000
+++ b/src/list.c	Sat Apr 26 05:31:26 2003 +0000
@@ -205,7 +205,10 @@
 
 	g_free(buddy->alias);
 
-	buddy->alias = g_strdup(alias);
+	if(alias && strlen(alias))
+		buddy->alias = g_strdup(alias);
+	else
+		buddy->alias = NULL;
 
 	if (ops)
 		ops->update(gaimbuddylist, (GaimBlistNode*)buddy);