diff --git a/render/glyph.c b/render/glyph.c index 3f6b8cbf0..23977c6b0 100644 --- a/render/glyph.c +++ b/render/glyph.c @@ -386,7 +386,8 @@ AllocateGlyph(xGlyphInfo * gi, int fdepth) static Bool AllocateGlyphHash(GlyphHashPtr hash, GlyphHashSetPtr hashSet) { - assert(hashSet); + if (hashSet == NULL) + return FALSE; hash->table = calloc(hashSet->size, sizeof(GlyphRefRec)); if (!hash->table) return FALSE;