[metacity] Fix typo when checking the result of getpwuid



commit a8fc30a13f2a8e76e81967cb18889f37cfc1fcdd
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Wed Feb 10 16:03:15 2010 -0500

    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

 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 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;
                 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]