# HG changeset patch # User Matti Hamalainen # Date 1526374726 -10800 # Node ID 3571d46709648a39cdf01cf5ae789a34bc69675e # Parent 61246926756aa149deed0613afd1fe7f513002aa NULL check. diff -r 61246926756a -r 3571d4670964 src/dmtext_ttf.c --- a/src/dmtext_ttf.c Tue May 15 11:33:46 2018 +0300 +++ b/src/dmtext_ttf.c Tue May 15 11:58:46 2018 +0300 @@ -10,7 +10,7 @@ void dmDrawTTFTextConst(SDL_Surface *screen, TTF_Font *font, SDL_Color col, int xc, int yc, const char *fmt) { SDL_Surface *text = TTF_RenderText_Blended(font, fmt, col); - if (text) + if (text != NULL) { SDL_Rect rect; rect.x = xc;