[Fontconfig] fontconfig: Branch 'master'

Akira TAGOH tagoh at kemper.freedesktop.org
Wed Feb 25 00:37:11 PST 2015


 src/fcstat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit dd427253cc73d8786bbf436ec4d026f370ab0812
Author: Akira TAGOH <akira at tagoh.org>
Date:   Wed Feb 25 17:36:50 2015 +0900

    filter can be null

diff --git a/src/fcstat.c b/src/fcstat.c
index 354362f..47b5884 100644
--- a/src/fcstat.c
+++ b/src/fcstat.c
@@ -213,7 +213,7 @@ FcScandir (const char		*dirp,
     *dlist = NULL;
     while ((dent = readdir (d)))
     {
-	if ((filter) (dent))
+	if (!filter || (filter) (dent))
 	{
 	    p = (struct dirent *) malloc (sizeof (struct dirent));
 	    memcpy (p, dent, sizeof (struct dirent));


More information about the Fontconfig mailing list