Fix a segfault when OOM happened.

Reported by Matt Breedlove
This commit is contained in:
Akira TAGOH 2015-03-06 11:05:23 +09:00
parent 96a3f6879c
commit ed74a58ccc
1 changed files with 2 additions and 0 deletions

View File

@ -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
*/ */