summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2022-07-09 12:23:57 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2022-07-09 12:23:57 -0400
commit1f610967afc221b296036849d0c17aea495ab50c (patch)
treeda24ae7e183d025ea5da0a14edc5dbb457f0f942
parent16b87600d545b7c0e8f4b6629f553eb235f19f0c (diff)
downloadxorg-lib-libXft-1f610967afc221b296036849d0c17aea495ab50c.tar.gz
add a null-pointer check
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
-rw-r--r--src/xftrender.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xftrender.c b/src/xftrender.c
index 98c86cd..bf2d494 100644
--- a/src/xftrender.c
+++ b/src/xftrender.c
@@ -154,6 +154,8 @@ XftGlyphRender (Display *dpy,
if (wire >= (Glyph) font->num_glyphs || !font->glyphs[wire])
wire = 0;
glyph = font->glyphs[wire];
+ if (glyph == NULL)
+ continue;
if (glyph->picture)
{
_XftCompositeString(dpy, op, src, dst, font->format, font->glyphset, srcx, srcy, x, y, width, chars, j);