Commit 4657944d authored by Keith Packard's avatar Keith Packard
Browse files

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

Thanks to David <ssdk@ispras.ru> for spotting this error.
parent 28baf727
...@@ -123,7 +123,7 @@ FcInit (void) ...@@ -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 ();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment