changeset 19664:ccf627e2e0cc

We have got an empty fullname, set it to NULL so that we fall back to "Purple Person"
author Mark Doliner <mark@kingant.net>
date Thu, 06 Sep 2007 06:51:29 +0000
parents 132876614048
children 9600414aca2e
files libpurple/protocols/bonjour/bonjour.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/bonjour.c	Thu Sep 06 06:36:50 2007 +0000
+++ b/libpurple/protocols/bonjour/bonjour.c	Thu Sep 06 06:51:29 2007 +0000
@@ -592,8 +592,8 @@
 		fullname = info->pw_gecos;
 	else if ((info != NULL) && (info->pw_name != NULL) && (info->pw_name[0] != '\0'))
 		fullname = info->pw_name;
-	else if (((fullname = getlogin()) != NULL) && (fullname[0] != '\0'))
-		;
+	else if (((fullname = getlogin()) != NULL) && (fullname[0] == '\0'))
+		fullname = NULL;
 #else
 	/* The Win32 username lookup functions are synchronous so we do it in a thread */
 	g_thread_create(_win32_name_lookup_thread, NULL, FALSE, NULL);