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
This commit is contained in:
Tom Tromey 1999-04-19 09:43:18 +00:00 committed by Tom Tromey
parent 80e93e9adf
commit 3d79e10b31
2 changed files with 6 additions and 1 deletions

View File

@ -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> 1999-04-19 Andrew Haley <aph@cygnus.com>
* Makefile.in: Processed with new automake. * Makefile.in: Processed with new automake.

View File

@ -276,7 +276,7 @@ java::lang::System::init_properties (void)
buf_r = (char *) _Jv_AllocBytes (len_r); buf_r = (char *) _Jv_AllocBytes (len_r);
} }
#else #else
struct passwd *pwd_entry = getpwuid (user_id); pwd_entry = getpwuid (user_id);
#endif /* HAVE_GETPWUID_R */ #endif /* HAVE_GETPWUID_R */
if (pwd_entry != NULL) if (pwd_entry != NULL)