summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/unx/source/start.c4
-rw-r--r--jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx1
2 files changed, 4 insertions, 1 deletions
diff --git a/desktop/unx/source/start.c b/desktop/unx/source/start.c
index f95cfe4d1eaa..76f3adcb6e9c 100644
--- a/desktop/unx/source/start.c
+++ b/desktop/unx/source/start.c
@@ -700,7 +700,9 @@ static void exec_javaldx(Args *args)
*chomp = '\0';
}
- extend_library_path(newpath);
+ if (newpath[0] != '\0') {
+ extend_library_path(newpath);
+ }
if (javaldx)
osl_freeProcessHandle(javaldx);
diff --git a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
index f7c295ec1728..3e8acd674626 100644
--- a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
+++ b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
@@ -59,6 +59,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
if (errcode == JFW_E_NONE && !bEnabled)
{
//Do not do any preparation because that may only slow startup time.
+ fprintf(stdout, "\n");
return 0;
}
else if (errcode != JFW_E_NONE && errcode != JFW_E_DIRECT_MODE)