changeset 19665:9600414aca2e

merge of '820a17ae981af30a64647d8438bd769db8bb4689' and 'afad2dc8f17981c8e1b0ba3760c573843bddff49'
author Kevin Stange <kevin@simguy.net>
date Thu, 06 Sep 2007 07:01:39 +0000
parents aa3920f45ff3 (current diff) ccf627e2e0cc (diff)
children 01ad48d825bd
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/bonjour.c	Thu Sep 06 06:59:23 2007 +0000
+++ b/libpurple/protocols/bonjour/bonjour.c	Thu Sep 06 07:01:39 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);