[Fontconfig] fontconfig: Branch 'master'

Akira TAGOH tagoh at kemper.freedesktop.org
Tue Dec 11 01:54:23 PST 2012


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

New commits:
commit 9ce36f4bbebc702a35d0cd9f1a59d5b828549bc6
Author: Akira TAGOH <akira at tagoh.org>
Date:   Tue Dec 11 18:53:57 2012 +0900

    Check the system font to be initialized
    
    config->fonts is an array and checking if config->fonts is a null
    will not be useful.

diff --git a/src/fccfg.c b/src/fccfg.c
index 45b4869..f94f0e0 100644
--- a/src/fccfg.c
+++ b/src/fccfg.c
@@ -398,7 +398,7 @@ FcConfigSetCurrent (FcConfig *config)
     if (config == _fcConfig)
 	return FcTrue;
 
-    if (!config->fonts)
+    if (!config->fonts[FcSetSystem])
 	if (!FcConfigBuildFonts (config))
 	    return FcFalse;
 


More information about the Fontconfig mailing list