From: Joel Rosdahl Date: Wed, 5 Feb 2020 20:31:55 +0000 (+0100) Subject: Improve error message for “ccache -o=K=V” X-Git-Tag: v4.0~651 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bf7ddcc4db8f7905c685c895eb03216595621a5;p=thirdparty%2Fccache.git Improve error message for “ccache -o=K=V” Previously: ccache: error: unknown configuration option "" Now: ccache: error: unknown configuration option "=K" Related to #529. --- diff --git a/src/ccache.cpp b/src/ccache.cpp index f9ac18284..7a1f22712 100644 --- a/src/ccache.cpp +++ b/src/ccache.cpp @@ -3973,7 +3973,7 @@ ccache_main_options(int argc, char* argv[]) case 'o': { // --set-config initialize(); - char* p = strchr(optarg, '='); + char* p = strchr(optarg + 1, '='); // Improve error message for -o=K=V if (!p) { fatal("missing equal sign in \"%s\"", optarg); }