Commit 948bbe50 authored by Ulrich Sibiller's avatar Ulrich Sibiller

NXglyph.c: check for malloc error

"V575 The potential null pointer is passed into 'memcpy' function. Inspect the first argument."
parent 7443fea6
......@@ -296,6 +296,13 @@ miGlyphs (CARD8 op,
else
{
nxagentGlyphsExtents = (BoxPtr) malloc(sizeof(BoxRec));
if (!nxagentGlyphsExtents)
{
#ifdef WARNING
fprintf(stderr, "WARNING! Cannot allocate GlyphExtents\n");
#endif
return;
}
GlyphExtents (nlist, list, glyphs, &extents);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment