mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
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:
parent
5159c3f3ca
commit
a8fc30a13f
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user