aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1999-04-19 09:43:18 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-04-19 09:43:18 +0000
commit3d79e10b31d4280d34b3870f1454a4431bb6ef9e (patch)
treeb3ed838c6cf22d1f355fdb87c091dfbba81ecbd5
parent80e93e9adf62ffe3fb57002df9322cff37b008ae (diff)
downloadgcc-3d79e10b31d4280d34b3870f1454a4431bb6ef9e.zip
gcc-3d79e10b31d4280d34b3870f1454a4431bb6ef9e.tar.gz
gcc-3d79e10b31d4280d34b3870f1454a4431bb6ef9e.tar.bz2
natSystem.cc (init_properties): Only declare pwd_entry once.
* java/lang/natSystem.cc (init_properties): Only declare pwd_entry once. From Anthony Green. From-SVN: r26545
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/lang/natSystem.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 661762d..704904a 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+1999-04-19 Tom Tromey <tromey@cygnus.com>
+
+ * java/lang/natSystem.cc (init_properties): Only declare pwd_entry
+ once. From Anthony Green.
+
1999-04-19 Andrew Haley <aph@cygnus.com>
* Makefile.in: Processed with new automake.
diff --git a/libjava/java/lang/natSystem.cc b/libjava/java/lang/natSystem.cc
index 10acfce..27034ff 100644
--- a/libjava/java/lang/natSystem.cc
+++ b/libjava/java/lang/natSystem.cc
@@ -276,7 +276,7 @@ java::lang::System::init_properties (void)
buf_r = (char *) _Jv_AllocBytes (len_r);
}
#else
- struct passwd *pwd_entry = getpwuid (user_id);
+ pwd_entry = getpwuid (user_id);
#endif /* HAVE_GETPWUID_R */
if (pwd_entry != NULL)