aboutsummaryrefslogtreecommitdiff
path: root/fontconfig/fc-pattern
diff options
context:
space:
mode:
Diffstat (limited to 'fontconfig/fc-pattern')
-rw-r--r--fontconfig/fc-pattern/fc-pattern.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fontconfig/fc-pattern/fc-pattern.c b/fontconfig/fc-pattern/fc-pattern.c
index 3f066c1e3..d2279cb33 100644
--- a/fontconfig/fc-pattern/fc-pattern.c
+++ b/fontconfig/fc-pattern/fc-pattern.c
@@ -137,6 +137,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)