From: Keith Packard Date: Thu, 25 Oct 2007 07:41:28 +0000 (-0700) Subject: FcInit should return FcFalse when FcInitLoadConfigAndFonts fails. (bug 10976) X-Git-Tag: 2.4.91~14 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4657944d0c39a640b2e30dfbd95f13d79a99460b;p=fontconfig.git FcInit should return FcFalse when FcInitLoadConfigAndFonts fails. (bug 10976) Thanks to David 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 ();