diff --git a/render/glyph.c b/render/glyph.c index 38113034d..2b061ca2b 100644 --- a/render/glyph.c +++ b/render/glyph.c @@ -385,6 +385,8 @@ AllocateGlyph(xGlyphInfo * gi, int fdepth) static Bool AllocateGlyphHash(GlyphHashPtr hash, GlyphHashSetPtr hashSet) { + if (hashSet == NULL) + return FALSE; hash->table = calloc(hashSet->size, sizeof(GlyphRefRec)); if (!hash->table) return FALSE;