comparison libpurple/protocols/bonjour/bonjour.c @ 19663: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 55d3f1622cf7
children 44b4e8bd759b
comparison
equal deleted inserted replaced
19662:132876614048 19663:ccf627e2e0cc
590 info = getpwuid(getuid()); 590 info = getpwuid(getuid());
591 if ((info != NULL) && (info->pw_gecos != NULL) && (info->pw_gecos[0] != '\0')) 591 if ((info != NULL) && (info->pw_gecos != NULL) && (info->pw_gecos[0] != '\0'))
592 fullname = info->pw_gecos; 592 fullname = info->pw_gecos;
593 else if ((info != NULL) && (info->pw_name != NULL) && (info->pw_name[0] != '\0')) 593 else if ((info != NULL) && (info->pw_name != NULL) && (info->pw_name[0] != '\0'))
594 fullname = info->pw_name; 594 fullname = info->pw_name;
595 else if (((fullname = getlogin()) != NULL) && (fullname[0] != '\0')) 595 else if (((fullname = getlogin()) != NULL) && (fullname[0] == '\0'))
596 ; 596 fullname = NULL;
597 #else 597 #else
598 /* The Win32 username lookup functions are synchronous so we do it in a thread */ 598 /* The Win32 username lookup functions are synchronous so we do it in a thread */
599 g_thread_create(_win32_name_lookup_thread, NULL, FALSE, NULL); 599 g_thread_create(_win32_name_lookup_thread, NULL, FALSE, NULL);
600 #endif 600 #endif
601 601