evas: sw font draw - protect against null pointer access

The image data of dst could be null in a rare case.
@fix

Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Differential Revision: https://phab.enlightenment.org/D12163
This commit is contained in:
Youngbok Shin 2020-09-24 09:12:06 +00:00 committed by Stefan Schmidt
parent 4774e7d682
commit 92da0a3339
1 changed files with 2 additions and 0 deletions

View File

@ -457,6 +457,8 @@ evas_common_font_glyph_draw(RGBA_Font_Glyph *fg,
DATA32 coltab[16], col;
DATA16 mtab[16], v;
if (!dst) return;
// FIXME: Use dw, dh for scaling glyphs...
(void) dw;
(void) dh;