safer and more portable pointer access

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32717 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2011-03-28 08:50:45 +00:00
parent 1420c8b6be
commit 4e29676292
2 changed files with 6 additions and 1 deletions

View file

@ -1664,7 +1664,7 @@ NSFullUserName(void)
[gnustep_global_lock lock];
pw = getpwnam([userName cString]);
if (*pw.pw_gecos)
if (pw->pw_gecos)
{
userName = [NSString stringWithUTF8String: pw->pw_gecos];
}