* font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
NULL font.
This commit is contained in:
parent
2bdb2892b3
commit
942a10c71e
2 changed files with 7 additions and 0 deletions
|
@ -1029,6 +1029,8 @@ grub_font_get_glyph_with_fallback (grub_font_t font, grub_uint32_t code)
|
|||
next = node->next;
|
||||
|
||||
glyph = grub_font_get_glyph_internal (curfont, code);
|
||||
if (glyph && !font)
|
||||
return glyph;
|
||||
if (glyph)
|
||||
{
|
||||
int d;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue