From ed74a58ccc245bacd907cd91e0f3df64e427c163 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 6 Mar 2015 11:05:23 +0900 Subject: [PATCH] Fix a segfault when OOM happened. Reported by Matt Breedlove --- src/fcinit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fcinit.c b/src/fcinit.c index db62c21..6134ed4 100644 --- a/src/fcinit.c +++ b/src/fcinit.c @@ -209,6 +209,8 @@ FcInitBringUptoDate (void) FcConfig *config = FcConfigGetCurrent (); time_t now; + if (!config) + return FcFalse; /* * rescanInterval == 0 disables automatic up to date */