summaryrefslogtreecommitdiffstats
path: root/firmware/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/font.c')
-rw-r--r--firmware/font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/font.c b/firmware/font.c
index f1584713ed..b4cead79d9 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -449,7 +449,7 @@ int font_load(struct font* pf, const char *path)
void font_unload(int font_id)
{
struct font* pf = sysfonts[font_id];
- if (font_id >= SYSTEMFONTCOUNT && pf)
+ if (font_id && pf)
{
if (pf->fd >= 0)
close(pf->fd);