mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
[PR #2189] render: handle -Wanalyzer-null-dereference in AllocateGlyphHash()
PR: https://github.com/X11Libre/xserver/pull/2189
This commit is contained in:
committed by
Enrico Weigelt, metux IT consult
parent
0b8a7a4783
commit
25b68fb3de
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user