[Fontconfig] fontconfig: Branch 'master'

Keith Packard keithp at kemper.freedesktop.org
Thu Oct 25 00:41:59 PDT 2007


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

New commits:
commit 4657944d0c39a640b2e30dfbd95f13d79a99460b
Author: Keith Packard <keithp at koto.keithp.com>
Date:   Thu Oct 25 00:41:28 2007 -0700

    FcInit should return FcFalse when FcInitLoadConfigAndFonts fails. (bug 10976)
    
    Thanks to David <ssdk at ispras.ru> for spotting this error.

diff --git a/src/fcinit.c b/src/fcinit.c
index 693e0b7..96aaa44 100644
--- a/src/fcinit.c
+++ b/src/fcinit.c
@@ -123,7 +123,7 @@ FcInit (void)
 	return FcTrue;
     config = FcInitLoadConfigAndFonts ();
     if (!config)
-	return FcTrue;
+	return FcFalse;
     FcConfigSetCurrent (config);
     if (FcDebug() & FC_DBG_MEMORY)
 	FcMemReport ();


More information about the Fontconfig mailing list