summaryrefslogtreecommitdiff
path: root/src/jvm
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-05-21 12:19:29 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-05-21 12:19:29 +0300
commit6b40e6f70d3dd9aa39574e25f1eca47bf5853a2b (patch)
treeba2dc8c1fe37733cbe0144c0189efdbdb40c55e0 /src/jvm
parent39420eb643e80e411d194263edbde7e4f5a6a01b (diff)
jvm: better utf string functions
Diffstat (limited to 'src/jvm')
-rw-r--r--src/jvm/jvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jvm/jvm.c b/src/jvm/jvm.c
index bbd48e2..010cc2b 100644
--- a/src/jvm/jvm.c
+++ b/src/jvm/jvm.c
@@ -1247,13 +1247,13 @@ JNIEnv_GetStringUTFChars(JNIEnv *env, jstring string, jboolean *isCopy)
*isCopy = JNI_FALSE;
verbose("%s", (string ? jvm_get_object_of_type(jnienv_get_jvm(env), string, JVM_OBJECT_STRING)->string.data : "(null)"));
- return (string ? jvm_get_object_of_type(jnienv_get_jvm(env), string, JVM_OBJECT_STRING)->string.data : "(null)");
+ return (string ? jvm_get_object_of_type(jnienv_get_jvm(env), string, JVM_OBJECT_STRING)->string.data : NULL);
}
static void
JNIEnv_ReleaseStringUTFChars(JNIEnv *env, jstring string, const char *utf)
{
- assert(env && string && utf);
+ assert(env && string);
}
#define WRAP(x) wrapper_create(#x, x)