summaryrefslogtreecommitdiff
path: root/src/fontfile
diff options
context:
space:
mode:
Diffstat (limited to 'src/fontfile')
-rw-r--r--src/fontfile/fontdir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fontfile/fontdir.c b/src/fontfile/fontdir.c
index cd9fde1..00c7511 100644
--- a/src/fontfile/fontdir.c
+++ b/src/fontfile/fontdir.c
@@ -457,6 +457,8 @@ FontFileFindNameInScalableDir(FontTablePtr table, FontNamePtr pat,
private;
FontNamePtr name;
+ if (!table->entries)
+ return NULL;
if ((i = SetupWildMatch(table, pat, &start, &stop, &private)) >= 0)
return &table->entries[i];
for (i = start; i < stop; i++) {