diff options
author | Po Lu <luangruo@yahoo.com> | 2023-07-29 12:50:06 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2023-07-29 12:50:06 +0800 |
commit | 431fdda2ebbb6e93ea4eb705ec16a44b49c30c8d (patch) | |
tree | aedc6ef8b65aee53de203aa00443dc8989d0e02f /src/androidvfs.c | |
parent | 27fe17f0fc56ac11969dbbe54485cff8a4fdab32 (diff) | |
download | emacs-431fdda2ebbb6e93ea4eb705ec16a44b49c30c8d.tar.gz |
; Update Android port
* src/androidvfs.c (android_saf_exception_check): Describe
exceptions earlier.
Diffstat (limited to 'src/androidvfs.c')
-rw-r--r-- | src/androidvfs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/androidvfs.c b/src/androidvfs.c index babc7101d88..b175f7746f3 100644 --- a/src/androidvfs.c +++ b/src/androidvfs.c @@ -3739,15 +3739,17 @@ android_saf_exception_check (int n, ...) /* No exception has taken place. Return 0. */ return 0; + /* Print the exception. */ + (*env)->ExceptionDescribe (env); + exception = (*env)->ExceptionOccurred (env); if (!exception) /* JNI couldn't return a local reference to the exception. */ memory_full (0); - /* Print and clear the exception, making it safe to subsequently - call other JNI functions. */ - (*env)->ExceptionDescribe (env); + /* Clear the exception, making it safe to subsequently call other + JNI functions. */ (*env)->ExceptionClear (env); /* Delete each of the N arguments. */ |