Properly skip past dir caches that contain zero fonts (as occurs in global
caches.) Reported by Mike Fabian.
This commit is contained in:
parent
5fe09702f4
commit
05a98eaf4b
|
@ -1,3 +1,9 @@
|
|||
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,
|
||||
|
|
Loading…
Reference in New Issue