From bdbc26f3d970581a3248c245451f7fbfb1609601 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 3 May 2008 20:14:07 -0700 Subject: [PATCH] Make fc-match behave better when style is unknown (bug 15332) --- fc-match/fc-match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }