summaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c
index 8321185..e611ba6 100644
--- a/src/index.c
+++ b/src/index.c
@@ -68,7 +68,11 @@ void init_index_mode(void)
mode = "index";
}
- fn = gib_imlib_load_font(opt.font);
+ if (opt.font)
+ fn = gib_imlib_load_font(opt.font);
+
+ if (!fn)
+ fn = gib_imlib_load_font(DEFAULT_FONT);
if (opt.title_font) {
int fh, fw;