Fix a possible null pointer issue

This commit is contained in:
Chris 2019-05-13 20:51:58 -04:00
parent d3ea737071
commit 7148ea2a99

View File

@ -168,6 +168,8 @@ void fontFixPointers(CFNT_s* font);
static inline CFNT_s* fontGetSystemFont(void)
{
extern CFNT_s* g_sharedFont;
if (!g_sharedFont)
fontEnsureMapped();
return g_sharedFont;
}