Mercurial > pidgin.yaz
changeset 13191:a0dfbd5c3b03
[gaim-migrate @ 15554]
Warning fix
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 08 Feb 2006 23:31:46 +0000 |
parents | 60b863ecd89b |
children | ad7aa4aa753b |
files | src/protocols/bonjour/bonjour.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/bonjour/bonjour.c Wed Feb 08 23:13:56 2006 +0000 +++ b/src/protocols/bonjour/bonjour.c Wed Feb 08 23:31:46 2006 +0000 @@ -450,12 +450,16 @@ static void initialize_default_account_values() { +#ifdef _WIN32 char *fullname = NULL; +#else + struct passwd *info; + const char *fullname = NULL; +#endif char *splitpoint = NULL; char hostname[255]; + #ifndef _WIN32 - struct passwd *info; - /* Try to figure out the user's real name */ info = getpwuid(getuid()); if ((info != NULL) && (info->pw_gecos != NULL) && (info->pw_gecos[0] != '\0'))