Merge "io_util: Avoid early return in fileOpen."
diff --git a/ojluni/src/main/native/io_util_md.c b/ojluni/src/main/native/io_util_md.c
index 4b1de48..430e983 100755
--- a/ojluni/src/main/native/io_util_md.c
+++ b/ojluni/src/main/native/io_util_md.c
@@ -86,10 +86,10 @@
close(fd);
errno = EISDIR; // For Exception message
throwFileNotFoundException(env, path);
- return;
+ } else {
+ // END android
+ SET_FD(this, fd, fid);
}
- // END android
- SET_FD(this, fd, fid);
} else {
throwFileNotFoundException(env, path);
}