Code

Check key bindings and quit if they are insane.
authorKalle Wallin <kaw@linux.se>
Wed, 14 Apr 2004 19:00:51 +0000 (19:00 +0000)
committerKalle Wallin <kaw@linux.se>
Wed, 14 Apr 2004 19:00:51 +0000 (19:00 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@753 09075e82-0dd4-0310-85a5-a0d7c8717e4f

main.c

diff --git a/main.c b/main.c
index 6d4bd345ed2ccd1498f140a04a745031f154bcce..cfa1151d996410ecdfd765031edddf103c45aae7 100644 (file)
--- 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);