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