Use strcmp instead of == operator for c.name and name to find appropriate classes for WebRtcAudio*.java
. BUG= Review URL: https://codereview.webrtc.org/1229443002 Cr-Commit-Position: refs/heads/master@{#9543}
This commit is contained in:
parent
2bad88d164
commit
f935bcc2f7
@ -58,7 +58,7 @@ void FreeClassReferences(JNIEnv* jni) {
|
||||
|
||||
jclass LookUpClass(const char* name) {
|
||||
for (auto& c : loaded_classes) {
|
||||
if (c.name == name)
|
||||
if (strcmp(c.name, name) == 0)
|
||||
return c.clazz;
|
||||
}
|
||||
CHECK(false) << "Unable to find class in lookup table";
|
||||
|
Loading…
Reference in New Issue
Block a user