summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 9ea60f4..2b272b0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -520,12 +520,14 @@ init_defaults (void)
/* Attempt to load a font */
defaults.font = load_query_font_set (dpy, DEFAULT_FONT);
if (defaults.font == NULL)
- PRINT_ERROR (("ratpoison: Cannot load font %s.\n", DEFAULT_FONT));
- defaults.font = load_query_font_set (dpy, BACKUP_FONT);
- if (defaults.font == NULL)
{
- PRINT_ERROR (("ratpoison: Cannot load backup font %s . You lose.\n", BACKUP_FONT));
- exit (EXIT_FAILURE);
+ PRINT_ERROR (("ratpoison: Cannot load font %s.\n", DEFAULT_FONT));
+ defaults.font = load_query_font_set (dpy, BACKUP_FONT);
+ if (defaults.font == NULL)
+ {
+ PRINT_ERROR (("ratpoison: Cannot load backup font %s . You lose.\n", BACKUP_FONT));
+ exit (EXIT_FAILURE);
+ }
}
defaults.font_string = xstrdup (DEFAULT_FONT);