Jelajahi Sumber

server-mode: Do not ignore the first cacheArgument on configure

SetCacheArgs skips the first argument it gets, so add some padding before
calling it.
Tobias Hunger 9 tahun lalu
induk
melakukan
28e891f0c7
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Source/cmServerProtocol.cxx

+ 1 - 1
Source/cmServerProtocol.cxx

@@ -923,7 +923,7 @@ cmServerResponse cmServerProtocol1_0::ProcessConfigure(
   }
   }
 
 
   // Make sure the types of cacheArguments matches (if given):
   // Make sure the types of cacheArguments matches (if given):
-  std::vector<std::string> cacheArgs;
+  std::vector<std::string> cacheArgs = { "unused" };
   bool cacheArgumentsError = false;
   bool cacheArgumentsError = false;
   const Json::Value passedArgs = request.Data[kCACHE_ARGUMENTS_KEY];
   const Json::Value passedArgs = request.Data[kCACHE_ARGUMENTS_KEY];
   if (!passedArgs.isNull()) {
   if (!passedArgs.isNull()) {