Commit 05a98eaf authored by Patrick Lam's avatar Patrick Lam
Browse files

Properly skip past dir caches that contain zero fonts (as occurs in global

    caches.) Reported by Mike Fabian.
parent 5fe09702
2006-01-08 Patrick Lam <plam@mit.edu>
* src/fccache.c (FcDirCacheConsume):
Properly skip past dir caches that contain zero fonts (as occurs
in global caches.) Reported by Mike Fabian.
2006-01-06 Patrick Lam <plam@mit.edu>
* src/fcdbg.c (FcPatternPrint):
......
......@@ -966,7 +966,11 @@ FcDirCacheConsume (int fd, const char * dir, FcFontSet *set)
return FcFalse;
if (!metadata.count)
{
pos = FcCacheNextOffset (lseek(fd, 0, SEEK_CUR));
lseek (fd, pos, SEEK_SET);
return FcTrue;
}
pos = FcCacheNextOffset (lseek(fd, 0, SEEK_CUR));
current_dir_block = mmap (0, metadata.count,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment