From 403ace96e351438f6d0055d2dad458a884e36746 Mon Sep 17 00:00:00 2001 From: keni Date: Tue, 18 Mar 2008 23:11:28 +0000 Subject: [PATCH] build error message tid Don't call impossible() if there are no window types - we just core after being told to #quit when it's too early to do so. --- src/windows.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/windows.c b/src/windows.c index 3d2e6939f..7a2d6ad89 100644 --- a/src/windows.c +++ b/src/windows.c @@ -111,7 +111,10 @@ const char *s; if (!windowprocs.win_raw_print) windowprocs.win_raw_print = def_raw_print; - if(!winchoices[0].procs) impossible("no window types?"); + if(!winchoices[0].procs){ + raw_printf("No window types?"); + exit(EXIT_FAILURE); + } if(!winchoices[1].procs){ raw_printf("Window type %s not recognized. The only choice is: %s.", s, winchoices[0].procs->name);