From 28e891f0c7edff8dacecd7526c42e8e23e90271a Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Wed, 30 Nov 2016 17:20:34 +0100 Subject: [PATCH] server-mode: Do not ignore the first cacheArgument on configure SetCacheArgs skips the first argument it gets, so add some padding before calling it. --- Source/cmServerProtocol.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmServerProtocol.cxx b/Source/cmServerProtocol.cxx index d35efe055..e159c8f7e 100644 --- a/Source/cmServerProtocol.cxx +++ b/Source/cmServerProtocol.cxx @@ -923,7 +923,7 @@ cmServerResponse cmServerProtocol1_0::ProcessConfigure( } // Make sure the types of cacheArguments matches (if given): - std::vector cacheArgs; + std::vector cacheArgs = { "unused" }; bool cacheArgumentsError = false; const Json::Value passedArgs = request.Data[kCACHE_ARGUMENTS_KEY]; if (!passedArgs.isNull()) {