]> git.wh0rd.org Git - fontconfig.git/commitdiff
Dont attempt to use cache if NULL
authorKeith Packard <keithp@keithp.com>
Mon, 24 Feb 2003 16:51:29 +0000 (16:51 +0000)
committerKeith Packard <keithp@keithp.com>
Mon, 24 Feb 2003 16:51:29 +0000 (16:51 +0000)
src/fcdir.c

index 6750562c02be75d30bca4ee022dcec20e254d95e..86493b7274f9cd0db21ad1c037ea411d4a2838eb 100644 (file)
@@ -178,7 +178,8 @@ FcDirScan (FcFontSet            *set,
         */
        if (FcDirCacheReadDir (set, dirs, dir))
        {
-           FcGlobalCacheReferenceSubdir (cache, dir);
+           if (cache)
+               FcGlobalCacheReferenceSubdir (cache, dir);
            return FcTrue;
        }