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:
sophiechang 2015-07-07 01:10:14 -07:00 committed by Commit bot
parent 2bad88d164
commit f935bcc2f7

View File

@ -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";