Fix a possible null pointer issue
This commit is contained in:
parent
d3ea737071
commit
7148ea2a99
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user