-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ANDROID: ReleaseStringUTFChars doesn't allow NULL as final arg
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7561c9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could it be the case that this change is responsible for
android_getFilesDir
no longer working after the git pull?7561c9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking closer: this change does not make any sense to me. Why pass some arbitrary pointer to
ReleaseStringUTFChars
? those pointers where create by malloc (within strdup).ReleaseStringUTFChars
has no business with them.7561c9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NULL
is not a valid argument - it stops the compilation. These are the appropriate variables that we want the strings to be put into, so I am not sure why this is a problem?7561c9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is defined in https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/functions.html
7561c9a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.