diff options
Diffstat (limited to 'fontconfig/fc-match')
-rw-r--r-- | fontconfig/fc-match/fc-match.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fontconfig/fc-match/fc-match.c b/fontconfig/fc-match/fc-match.c index 260f4043c..f96c00949 100644 --- a/fontconfig/fc-match/fc-match.c +++ b/fontconfig/fc-match/fc-match.c @@ -146,6 +146,11 @@ main (int argc, char **argv) if (argv[i]) { pat = FcNameParse ((FcChar8 *) argv[i]); + if (!pat) + { + fputs ("Unable to parse the pattern\n", stderr); + return 1; + } while (argv[++i]) { if (!os) |