Fix a segfault when OOM happened.
Reported by Matt Breedlove
This commit is contained in:
parent
96a3f6879c
commit
ed74a58ccc
|
@ -209,6 +209,8 @@ FcInitBringUptoDate (void)
|
||||||
FcConfig *config = FcConfigGetCurrent ();
|
FcConfig *config = FcConfigGetCurrent ();
|
||||||
time_t now;
|
time_t now;
|
||||||
|
|
||||||
|
if (!config)
|
||||||
|
return FcFalse;
|
||||||
/*
|
/*
|
||||||
* rescanInterval == 0 disables automatic up to date
|
* rescanInterval == 0 disables automatic up to date
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue