]> git.wh0rd.org - fontconfig.git/commitdiff
FcInit should return FcFalse when FcInitLoadConfigAndFonts fails. (bug 10976)
authorKeith Packard <keithp@koto.keithp.com>
Thu, 25 Oct 2007 07:41:28 +0000 (00:41 -0700)
committerKeith Packard <keithp@koto.keithp.com>
Thu, 25 Oct 2007 07:41:28 +0000 (00:41 -0700)
Thanks to David <ssdk@ispras.ru> for spotting this error.

src/fcinit.c

index 693e0b7b3362eadb712c64a1fe6a065ec6576d55..96aaa4497a1295367706080ad6a52f9cf8734d31 100644 (file)
@@ -123,7 +123,7 @@ FcInit (void)
        return FcTrue;
     config = FcInitLoadConfigAndFonts ();
     if (!config)
-       return FcTrue;
+       return FcFalse;
     FcConfigSetCurrent (config);
     if (FcDebug() & FC_DBG_MEMORY)
        FcMemReport ();