TrackerString.cpp: fix comparison between pointer and integer

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Ticket: #12842
This commit is contained in:
Murai Takashi 2016-07-02 18:04:01 +09:00 committed by Adrien Destugues
parent 07d59ab7db
commit e019775491

View File

@ -265,7 +265,7 @@ TrackerString::StringMatchesPattern(const char* string, const char* pattern,
// Collapse any ** and *? constructions: // Collapse any ** and *? constructions:
while (*pattern == '*' || *pattern == '?') { while (*pattern == '*' || *pattern == '?') {
pattern++; pattern++;
if (*pattern == '?' && string != '\0') { if (*pattern == '?' && *string != '\0') {
string++; string++;
if (IsInsideGlyph(string[0])) if (IsInsideGlyph(string[0]))
string = MoveToEndOfGlyph(string); string = MoveToEndOfGlyph(string);