]> git.wh0rd.org Git - fontconfig.git/commitdiff
Make fc-match behave better when style is unknown (bug 15332)
authorKeith Packard <keithp@keithp.com>
Sun, 4 May 2008 03:14:07 +0000 (20:14 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 4 May 2008 03:14:07 +0000 (20:14 -0700)
fc-match/fc-match.c

index c92d27701406a5a21d509eb4211e2ecf6e5c7258..aadd08aa521c50265ce8a191ef5632a602dac26c 100644 (file)
@@ -202,7 +202,7 @@ main (int argc, char **argv)
                if (FcPatternGetString (fs->fonts[j], FC_FAMILY, 0, &family) != FcResultMatch)
                    family = (FcChar8 *) "<unknown family>";
                if (FcPatternGetString (fs->fonts[j], FC_STYLE, 0, &style) != FcResultMatch)
-                   file = (FcChar8 *) "<unknown style>";
+                   style = (FcChar8 *) "<unknown style>";
 
                printf ("%s: \"%s\" \"%s\"\n", file, family, style);
            }