aboutsummaryrefslogtreecommitdiffstats
path: root/fbi.c
diff options
context:
space:
mode:
Diffstat (limited to 'fbi.c')
-rw-r--r--fbi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fbi.c b/fbi.c
index db4057a..f666994 100644
--- a/fbi.c
+++ b/fbi.c
@@ -1167,7 +1167,13 @@ main(int argc, char *argv[])
need_read = 1;
font_init();
- face = font_open(fontname ? fontname : "monospace:size=16");
+ if (NULL == fontname)
+ fontname = "monospace:size=16";
+ face = font_open(fontname);
+ if (NULL == face) {
+ fprintf(stderr,"can't open font: %s\n",fontname);
+ exit(1);
+ }
fd = fb_init(cfg_get_str(O_DEVICE),
cfg_get_str(O_VIDEO_MODE),
GET_VT());