fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 fc-list/fc-list.c       |    5 +++++
 fc-match/fc-match.c     |    5 +++++
 fc-pattern/fc-pattern.c |    5 +++++
 3 files changed, 15 insertions(+)

New commits:
commit 604c2a683f1357fc65bad372b5d25a90099f827f
Author: Akira TAGOH <akira@xxxxxxxxx>
Date:   Thu Oct 3 19:59:30 2013 +0900

    exit with the error code when FcNameParse() failed

diff --git a/fc-list/fc-list.c b/fc-list/fc-list.c
index 5ad1333..f6c7282 100644
--- a/fc-list/fc-list.c
+++ b/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)
diff --git a/fc-match/fc-match.c b/fc-match/fc-match.c
index 260f404..f96c009 100644
--- a/fc-match/fc-match.c
+++ b/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)
diff --git a/fc-pattern/fc-pattern.c b/fc-pattern/fc-pattern.c
index 3f066c1..d2279cb 100644
--- a/fc-pattern/fc-pattern.c
+++ b/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)
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig




[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux