From e019775491cc7be55c4f2269fe8792b0d204cf09 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Sat, 2 Jul 2016 18:04:01 +0900 Subject: [PATCH] TrackerString.cpp: fix comparison between pointer and integer Signed-off-by: Adrien Destugues Ticket: #12842 --- src/kits/tracker/TrackerString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/tracker/TrackerString.cpp b/src/kits/tracker/TrackerString.cpp index b559139c61..be4bbef84a 100644 --- a/src/kits/tracker/TrackerString.cpp +++ b/src/kits/tracker/TrackerString.cpp @@ -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);