From: Patrick Hallen Date: Sun, 29 Mar 2009 16:24:19 +0000 (+0200) Subject: options.c: Fixed compilation with --enable-mini --enable-debug X-Git-Tag: release-0.14~40^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2cbf373c8a16fbca00d90da9e697bb3e3da8bbc9;p=ncmpc.git options.c: Fixed compilation with --enable-mini --enable-debug With NCMPC_MINI we have no configuration file, so we can't dump the keys. --- diff --git a/src/options.c b/src/options.c index 4484054..3e862d2 100644 --- a/src/options.c +++ b/src/options.c @@ -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);