FcInit should return FcFalse when FcInitLoadConfigAndFonts fails. (bug 10976)
Thanks to David <ssdk@ispras.ru> for spotting this error.
This commit is contained in:
parent
28baf72736
commit
4657944d0c
|
@ -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 ();
|
||||||
|
|
Loading…
Reference in New Issue