summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2010-02-10 16:03:15 -0500
committerOwen W. Taylor <otaylor@fishsoup.net>2010-02-10 16:10:49 -0500
commita8fc30a13f2a8e76e81967cb18889f37cfc1fcdd (patch)
treed42d549bff453b371e429f6a9c0a9eae96dc1fb9 /src
parent5159c3f3ca0ccc5047ea98232af82ce40dcf790e (diff)
downloadmetacity-a8fc30a13f2a8e76e81967cb18889f37cfc1fcdd.tar.gz
metacity-a8fc30a13f2a8e76e81967cb18889f37cfc1fcdd.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/core/window-props.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/window-props.c b/src/core/window-props.c
index 370c9c4..b7b3e12 100644
--- a/src/core/window-props.c
+++ b/src/core/window-props.c
@@ -427,7 +427,7 @@ set_title_text (MetaWindow *window,
errno = 0;
pwd = getpwuid (window_owner);
- if (errno==0 || pwd==NULL)
+ if (errno==0 && pwd!=NULL)
{
found_name = pwd->pw_name;
}