From 46d003c34ef95db33ecb794d23f711161d4d4ae3 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 24 Feb 2003 16:51:29 +0000 Subject: [PATCH] Dont attempt to use cache if NULL --- src/fcdir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5