FcInit should return FcFalse when FcInitLoadConfigAndFonts fails. (bug 10976)

Thanks to David <ssdk@ispras.ru> for spotting this error.
This commit is contained in:
Keith Packard 2007-10-25 00:41:28 -07:00
parent 28baf72736
commit 4657944d0c
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ FcInit (void)
return FcTrue; return FcTrue;
config = FcInitLoadConfigAndFonts (); config = FcInitLoadConfigAndFonts ();
if (!config) if (!config)
return FcTrue; return FcFalse;
FcConfigSetCurrent (config); FcConfigSetCurrent (config);
if (FcDebug() & FC_DBG_MEMORY) if (FcDebug() & FC_DBG_MEMORY)
FcMemReport (); FcMemReport ();