Skip to content

Commit

Permalink
fix JNIHelp for ndk23
Browse files Browse the repository at this point in the history
  • Loading branch information
Darwin Algarin Sarmiento authored and Darwin Algarin Sarmiento committed Jul 20, 2024
1 parent 4b41ed2 commit bda73f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/main/jni/JNIHelp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ const char* jniStrError(int errnum, char* buf, size_t buflen) {
// char *strerror_r(int errnum, char *buf, size_t n);
return strerror_r(errnum, buf, buflen);
#else
int rc = strerror_r(errnum, buf, buflen);
char* rc = strerror_r(errnum, buf, buflen);
if (rc != 0) {
// (POSIX only guarantees a value other than 0. The safest
// way to implement this function is to use C++ and overload on the
Expand Down

0 comments on commit bda73f6

Please sign in to comment.