Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix Java_org_simgrid_msg_File_open one more time
[simgrid.git] / src / bindings / java / jmsg_file.c
index 92b32c9..1210a74 100644 (file)
@@ -27,14 +27,12 @@ Java_org_simgrid_msg_File_nativeInit(JNIEnv *env, jclass cls) {
 }
 JNIEXPORT void JNICALL
 Java_org_simgrid_msg_File_open(JNIEnv *env, jobject jfile, jobject jpath) {
-  const char *storage = (*env)->GetStringUTFChars(env, jstorage, 0);
   const char *path = (*env)->GetStringUTFChars(env, jpath, 0);
   msg_file_t file;
 
   file = MSG_file_open(path, NULL);
   jfile_bind(env, jfile, file);
 
-  (*env)->ReleaseStringUTFChars(env, jstorage, storage);
   (*env)->ReleaseStringUTFChars(env, jpath, path);
 }
 JNIEXPORT jlong JNICALL