summaryrefslogtreecommitdiff
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 4b21f0ffe3..06f104054f 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -514,7 +514,7 @@ int font_load_ex( const char *path, size_t buf_size, int glyphs )
514 int handle = core_alloc_ex( path, 514 int handle = core_alloc_ex( path,
515 bufsize + sizeof( struct buflib_alloc_data ), 515 bufsize + sizeof( struct buflib_alloc_data ),
516 &buflibops ); 516 &buflibops );
517 if ( handle < 0 ) 517 if ( handle <= 0 )
518 { 518 {
519 return -1; 519 return -1;
520 } 520 }