]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Fix warnings found by clang
authorMichael Schroeder <mls@suse.de>
Thu, 27 Jun 2019 14:31:59 +0000 (16:31 +0200)
committerMichael Schroeder <mls@suse.de>
Thu, 27 Jun 2019 14:31:59 +0000 (16:31 +0200)
src/selection.c

index d44c4829f928f037da8c72401e4f44b73215ee68..0b36ea841eb2d2fe3b1672666fa99cc74642ae02 100644 (file)
@@ -1468,7 +1468,7 @@ selection_make_matchdeps_common_limited(Pool *pool, Queue *selection, const char
          revr = pool_str2id(pool, r, 1);
          ret |= SELECTION_REL;
        }
-      if ((flags & SELECTION_GLOB) != 0 && !strpbrk(rname, "[*?") != 0)
+      if ((flags & SELECTION_GLOB) != 0 && strpbrk(rname, "[*?") == 0)
        flags &= ~SELECTION_GLOB;
 
       if ((flags & SELECTION_GLOB) == 0 && (flags & SELECTION_NOCASE) == 0 && (flags & SELECTION_MATCH_DEPSTR) == 0)