Code

options.c: Fixed compilation with --enable-mini --enable-debug
authorPatrick Hallen <patrick.hallen@rwth-aachen.de>
Sun, 29 Mar 2009 16:24:19 +0000 (18:24 +0200)
committerPatrick Hallen <patrick.hallen@rwth-aachen.de>
Sun, 29 Mar 2009 16:24:19 +0000 (18:24 +0200)
With NCMPC_MINI we have no configuration file, so we can't dump the keys.

src/options.c

index 44840548eb1c734521d5d1a1b3d8a0426b24d1a6..3e862d2a8d9f2c425d212b3294150a67aca202f8 100644 (file)
@@ -274,11 +274,13 @@ handle_option(int c, const char *arg)
                /* the splash screen was removed */
                break;
 #ifndef NDEBUG
+#ifndef NCMPC_MINI
        case 'K': /* --dump-keys */
                read_configuration();
                write_key_bindings(stdout, KEYDEF_WRITE_ALL | KEYDEF_COMMENT_ALL);
                exit(EXIT_SUCCESS);
                break;
+#endif
 #endif
        default:
                fprintf(stderr,"Unknown Option %c = %s\n", c, arg);