diff options
Diffstat (limited to 'libjava/java/lang/natRuntime.cc')
-rw-r--r-- | libjava/java/lang/natRuntime.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libjava/java/lang/natRuntime.cc b/libjava/java/lang/natRuntime.cc index 2cf312ea862..69f78f64491 100644 --- a/libjava/java/lang/natRuntime.cc +++ b/libjava/java/lang/natRuntime.cc @@ -108,10 +108,6 @@ _Jv_SetDLLSearchPath (const char *) -extern int _Jv_argc; -extern const char **_Jv_argv; - // our process' command line arguments - void java::lang::Runtime::exitInternal (jint status) { @@ -590,7 +586,7 @@ java::lang::Runtime::insertSystemProperties (java::util::Properties *newprops) } // The name used to invoke this process (argv[0] in C). - SET ("gnu.gcj.progname", _Jv_argv[0]); + SET ("gnu.gcj.progname", _Jv_GetSafeArg (0)); // Allow platform specific settings and overrides. _Jv_platform_initProperties (newprops); |