diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2010-02-10 16:03:15 -0500 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2010-02-10 16:10:49 -0500 |
commit | a8fc30a13f2a8e76e81967cb18889f37cfc1fcdd (patch) | |
tree | d42d549bff453b371e429f6a9c0a9eae96dc1fb9 /src/core/window-props.c | |
parent | 5159c3f3ca0ccc5047ea98232af82ce40dcf790e (diff) | |
download | metacity-a8fc30a13f2a8e76e81967cb18889f37cfc1fcdd.tar.gz |
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/core/window-props.c')
-rw-r--r-- | src/core/window-props.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/window-props.c b/src/core/window-props.c index 370c9c46..b7b3e12d 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; } |