Oops in pwdread.c

Peter Naulls peter at chocky.org
Sun Aug 4 01:50:56 PDT 2002


===================================================================
RCS file: /usr/local/cvsroot/gccsdk/unixlib/source/pwd/pwdread.c,v
retrieving revision 1.2.2.2
diff -u -r1.2.2.2 pwdread.c
--- unixlib/source/pwd/pwdread.c        10 Jun 2002 11:42:49 -0000      1.2.2.2
+++ unixlib/source/pwd/pwdread.c        4 Aug 2002 08:52:03 -0000
@@ -98,7 +98,7 @@
   static int pwd_inited;
   static struct passwd pwd;
 
-  if (pwd_inited != 0)
+  if (pwd_inited == 0)
     {
       pwd.pw_name   = strdup("unixlib");
       pwd.pw_passwd = strdup("");

-- 
------------------------------------------------------------------------
 Peter Naulls - peter at chocky.org
 Homepage                     -  http://www.chocky.org/
 RISC OS C Programming        -  http://www.riscos.info/
 Unix Programs on RISC OS     -  http://www.chocky.org/unix/
------------------------------------------------------------------------



More information about the gcc mailing list