commit | 1b0cb23adcdf0c2b136b41d805b157f0c6d75ad4 | [log] [tgz] |
---|---|---|
author | Matthias Clasen <mclasen@redhat.com> | Tue Aug 18 15:02:21 2020 -0400 |
committer | Matthias Clasen <mclasen@redhat.com> | Tue Aug 25 12:15:18 2020 -0400 |
tree | 26e53a7fc472481a3cc1f41886c0fb12c3eae681 | |
parent | 8022ab4aff469a8f095ce3168d879d3e0b3605ef [diff] |
Add a shortcut for FcQualAny matching When checking whether a test matches a pattern, we cut the loop short for FcQualAll when we see the first non-matching value, but for FcQualAny we were always walking the full list. This patch cuts the loop short for FcQualAny when we see the first matching value.
diff --git a/src/fccfg.c b/src/fccfg.c index 74e8746..cb4d3e0 100644 --- a/src/fccfg.c +++ b/src/fccfg.c
@@ -1550,6 +1550,8 @@ { if (!ret) ret = v; + if (t->qual != FcQualAll) + break; } else {