projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c64bdf6
)
Fix incorrect testing for the end of the both strings in CStrInCStrNoCase. This...
author
Ted Kremenek
<kremenek@apple.com>
Wed, 22 Oct 2008 23:16:52 +0000
(23:16 +0000)
committer
Ted Kremenek
<kremenek@apple.com>
Wed, 22 Oct 2008 23:16:52 +0000
(23:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58009
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/StringExtras.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/StringExtras.h
b/include/llvm/ADT/StringExtras.h
index 872c8451bf56ce0fab5cc4ea176325e19f56b19e..fcd03982e614846b153209ad35153aa4cbb226eb 100644
(file)
--- a/
include/llvm/ADT/StringExtras.h
+++ b/
include/llvm/ADT/StringExtras.h
@@
-159,7
+159,7
@@
static inline const char* CStrInCStrNoCase(const char *s1, const char *s2) {
const char *I1=s1, *I2=s2;
- while (*I1 != '\0'
||
*I2 != '\0' )
+ while (*I1 != '\0'
&&
*I2 != '\0' )
if (tolower(*I1) != tolower(*I2)) { // No match. Start over.
++s1; I1 = s1; I2 = s2;
}