]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcmatch.c
[fcmatch] When matching, reserve score 0 for when elements don't exist
[fontconfig.git] / src / fcmatch.c
index 4d20a61fc9b7f09d702f4bb8641b69dee8ff9386..49dd0ddae78771f6daf7be4c223adee9698671ad 100644 (file)
@@ -317,7 +317,7 @@ FcCompareValueList (FcObject         object,
     best = 1e99;
     bestStrong = 1e99;
     bestWeak = 1e99;
-    j = 0;
+    j = 1;
     for (v1 = v1orig; v1; v1 = FcValueListNext(v1))
     {
        for (v2 = v2orig; v2; v2 = FcValueListNext(v2))