summaryrefslogtreecommitdiff
path: root/jvmfwk
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2011-12-07 18:23:00 +0100
committerThorsten Behrens <tbehrens@suse.com>2011-12-08 13:26:09 +0100
commit5b335c0b71ffa7e875c93690476a778c93591ad3 (patch)
treef6182df71e247c39e769d8e674b46b84c61215aa /jvmfwk
parentf8c98efef78fc2f4c2e120af786604de420df30c (diff)
Fix nasty ppc ld crash, correct default return param setting
* on OSX 10.5 PPC, ld crashes with a bus error, presumably because of the empty ar[] string array. * the "size = 0" default case looks wrong, replaced by *size=0
Diffstat (limited to 'jvmfwk')
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/otherjre.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/otherjre.cxx b/jvmfwk/plugins/sunmajor/pluginlib/otherjre.cxx
index 864dc2d8f75d..3de9019c6c1a 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/otherjre.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/otherjre.cxx
@@ -87,11 +87,9 @@ char const* const* OtherInfo::getRuntimePaths(int * size)
char const* const* OtherInfo::getLibraryPaths(int* size)
{
-#ifdef UNX
+#if defined(UNX) && !defined(MACOSX)
+ //mac version does not have a ld library path anymore
static char const * ar[] = {
-#ifdef MACOSX
- //mac version does not have a ld library path anymore
-#else
"/bin",
"/jre/bin",
"/bin/classic",
@@ -102,13 +100,12 @@ char const* const* OtherInfo::getLibraryPaths(int* size)
"/lib/" JFW_PLUGIN_ARCH "/jrockit",
"/lib/" JFW_PLUGIN_ARCH "/native_threads",
"/lib/" JFW_PLUGIN_ARCH
-#endif
};
*size = sizeof(ar) / sizeof (char*);
return ar;
#else
- size = 0;
+ *size = 0;
return NULL;
#endif
}