TrackerString.cpp: fix comparison between pointer and integer

Signed-off-by: Adrien Destugues <[email protected]>
Ticket: #12842
This commit is contained in:
Murai Takashi
2016-07-10 17:11:23 +02:00
committed by Adrien Destugues
parent 07d59ab7db
commit e019775491
+1 -1
View File
@@ -265,7 +265,7 @@ TrackerString::StringMatchesPattern(const char* string, const char* pattern,
// Collapse any ** and *? constructions:
while (*pattern == '*' || *pattern == '?') {
pattern++;
if (*pattern == '?' && string != '\0') {
if (*pattern == '?' && *string != '\0') {
string++;
if (IsInsideGlyph(string[0]))
string = MoveToEndOfGlyph(string);