From 94cdf38b7e2deed6c98a3073494a59d2be861ba2 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Wed, 14 Apr 2004 19:00:51 +0000 Subject: Check key bindings and quit if they are insane. git-svn-id: https://svn.musicpd.org/ncmpc/trunk@753 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 6d4bd345e..cfa1151d9 100644 --- a/main.c +++ b/main.c @@ -59,7 +59,14 @@ main(int argc, const char *argv[]) options = options_init(); /* read configuration */ - read_rc_file(NULL, options); + read_configuration(options); + + /* check key bindings */ + if( check_key_bindings() ) + { + fprintf(stderr, "Confusing key bindings - exiting!\n"); + exit(EXIT_FAILURE); + } /* parse command line options */ options_parse(argc, argv); -- cgit v1.2.3