Fix typo when checking the result of getpwuid

Was meant to be:

  errno==0 && pwd!=NULL

Not:

  errno==0 || pwd==NULL

https://bugzilla.gnome.org/show_bug.cgi?id=609586
This commit is contained in:
Owen W. Taylor 2010-02-10 16:03:15 -05:00
parent 5159c3f3ca
commit a8fc30a13f

View File

@ -427,7 +427,7 @@ set_title_text (MetaWindow *window,
errno = 0; errno = 0;
pwd = getpwuid (window_owner); pwd = getpwuid (window_owner);
if (errno==0 || pwd==NULL) if (errno==0 && pwd!=NULL)
{ {
found_name = pwd->pw_name; found_name = pwd->pw_name;
} }