From: Keith Packard Date: Mon, 24 Feb 2003 16:51:29 +0000 (+0000) Subject: Dont attempt to use cache if NULL X-Git-Tag: fc-2_1_91~23 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=46d003c34ef95db33ecb794d23f711161d4d4ae3;p=fontconfig.git Dont attempt to use cache if NULL --- diff --git a/src/fcdir.c b/src/fcdir.c index 6750562..86493b7 100644 --- a/src/fcdir.c +++ b/src/fcdir.c @@ -178,7 +178,8 @@ FcDirScan (FcFontSet *set, */ if (FcDirCacheReadDir (set, dirs, dir)) { - FcGlobalCacheReferenceSubdir (cache, dir); + if (cache) + FcGlobalCacheReferenceSubdir (cache, dir); return FcTrue; }