aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
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 /libjava/java
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
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/lang/natSystem.cc2
1 files changed, 1 insertions, 1 deletions
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)