Ticket #12842: 0032-TrackerString.cpp-fix-comparison-between-pointer-and.patch

File 0032-TrackerString.cpp-fix-comparison-between-pointer-and.patch, 941 bytes (added by mt, 8 years ago)
  • src/kits/tracker/TrackerString.cpp

    From 1cc3898461318a85a3b089181c7dd4eaf2e63462 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Sat, 2 Jul 2016 18:04:01 +0900
    Subject: [PATCH 32/33] TrackerString.cpp: fix comparison between pointer and
     integer
    
    ---
     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 b559139..be4bbef 100644
    a b TrackerString::StringMatchesPattern(const char* string, const char* pattern,  
    265265                // Collapse any ** and *? constructions:
    266266                while (*pattern == '*' || *pattern == '?') {
    267267                    pattern++;
    268                     if (*pattern == '?' && string != '\0') {
     268                    if (*pattern == '?' && *string != '\0') {
    269269                        string++;
    270270                        if (IsInsideGlyph(string[0]))
    271271                            string = MoveToEndOfGlyph(string);