changeset 27810:11e45da1bb3a

fix for potential crash
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 24 Mar 2008 16:02:36 +0000
parents ebdbac0a51cf
children 95230b5572c8
files libpurple/server.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/server.c	Mon Mar 24 13:46:27 2008 +0000
+++ b/libpurple/server.c	Mon Mar 24 16:02:36 2008 +0000
@@ -260,8 +260,8 @@
 			continue;
 		}
 
-		/* alias must be non-NULL here */
-		alias2 = sanitize_utf(alias, strlen(alias), &dummy);
+		if(alias)
+			alias2 = sanitize_utf(alias, strlen(alias), &dummy);
 
 		purple_blist_server_alias_buddy(b, alias2);