From 0bf7ddcc4db8f7905c685c895eb03216595621a5 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Wed, 5 Feb 2020 21:31:55 +0100 Subject: [PATCH] =?utf8?q?Improve=20error=20message=20for=20=E2=80=9Cccach?= =?utf8?q?e=20-o=3DK=3DV=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Previously: ccache: error: unknown configuration option "" Now: ccache: error: unknown configuration option "=K" Related to #529. --- src/ccache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.2