From: Keith Packard Date: Sun, 4 May 2008 03:14:07 +0000 (-0700) Subject: Make fc-match behave better when style is unknown (bug 15332) X-Git-Tag: 2.5.92~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bdbc26f3d970581a3248c245451f7fbfb1609601;p=fontconfig.git Make fc-match behave better when style is unknown (bug 15332) --- diff --git a/fc-match/fc-match.c b/fc-match/fc-match.c index c92d277..aadd08a 100644 --- a/fc-match/fc-match.c +++ b/fc-match/fc-match.c @@ -202,7 +202,7 @@ main (int argc, char **argv) if (FcPatternGetString (fs->fonts[j], FC_FAMILY, 0, &family) != FcResultMatch) family = (FcChar8 *) ""; if (FcPatternGetString (fs->fonts[j], FC_STYLE, 0, &style) != FcResultMatch) - file = (FcChar8 *) ""; + style = (FcChar8 *) ""; printf ("%s: \"%s\" \"%s\"\n", file, family, style); }