Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Unified Diff: webrtc/modules/utility/source/jvm_android.cc

Issue 1229443002: Use strcmp instead of == operator for c.name and name to find appropriate classes for WebRtcAudio*.… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add space after comma in strcmp Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/utility/source/jvm_android.cc
diff --git a/webrtc/modules/utility/source/jvm_android.cc b/webrtc/modules/utility/source/jvm_android.cc
index e5e32116f7b9530a8f3db0234b9f67ae93ea0bc6..777b8d5fe71a4ea09850b48ad6c9255bb59b8cee 100644
--- a/webrtc/modules/utility/source/jvm_android.cc
+++ b/webrtc/modules/utility/source/jvm_android.cc
@@ -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";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698