Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/jni/Utils.cpp

Issue 29558607: Issue 5572 - fix stringBeginsWith in Util.cpp (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
Patch Set: Created Sept. 28, 2017, 10:45 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
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: libadblockplus-android/jni/Utils.cpp
diff --git a/libadblockplus-android/jni/Utils.cpp b/libadblockplus-android/jni/Utils.cpp
index 6e24d46229002e937d441e194c40ec773c7105da..124abfe44b6bd0322a278f0b52434a76103e6057 100644
--- a/libadblockplus-android/jni/Utils.cpp
+++ b/libadblockplus-android/jni/Utils.cpp
@@ -105,7 +105,7 @@ jstring JniStdStringToJava(JNIEnv* env, std::string str)
bool stringBeginsWith(const std::string& string, const std::string& beginning)
{
- return string.compare(0, beginning.length(), beginning);
+ return string.compare(0, beginning.length(), beginning) == 0;
sergei 2017/09/28 10:49:38 It was a stupid mistake and it was working sometim
}
jobject NewJniArrayList(JNIEnv* env)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld