# HG changeset patch # User Kevin Stange # Date 1189062099 0 # Node ID 9600414aca2ec8f45e012c126ee2f53999714c07 # Parent aa3920f45ff355fffb245ab57a08542c22ddf5a6# Parent ccf627e2e0cc4f40b3d2aeffc55d3457bfea055d merge of '820a17ae981af30a64647d8438bd769db8bb4689' and 'afad2dc8f17981c8e1b0ba3760c573843bddff49' diff -r aa3920f45ff3 -r 9600414aca2e libpurple/protocols/bonjour/bonjour.c --- 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);