summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libjvm-java.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libjvm-java.c b/src/libjvm-java.c
index 4e0902d..6bccb70 100644
--- a/src/libjvm-java.c
+++ b/src/libjvm-java.c
@@ -16,8 +16,9 @@ java_lang_System_load(JNIEnv *env, jobject object, va_list args)
const char *lib = (*env)->GetStringUTFChars(env, va_arg(args, jstring), NULL);
verbose("%s", lib);
- void *handle = bionic_dlopen(lib, RTLD_NOW | RTLD_GLOBAL);
- assert(handle);
+ void *handle;
+ if (!(handle = bionic_dlopen(lib, RTLD_NOW | RTLD_GLOBAL)))
+ return;
union {
void *ptr;