projects
/
platform
/
upstream
/
fontconfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exit with the error code when FcNameParse() failed
[platform/upstream/fontconfig.git]
/
fc-match
/
fc-match.c
diff --git
a/fc-match/fc-match.c
b/fc-match/fc-match.c
index
260f404
..
f96c009
100644
(file)
--- 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 (argv[i])
{
pat = FcNameParse ((FcChar8 *) argv[i]);
+ if (!pat)
+ {
+ fputs ("Unable to parse the pattern\n", stderr);
+ return 1;
+ }
while (argv[++i])
{
if (!os)
while (argv[++i])
{
if (!os)