test/cli_argument_parser: fix programmer-generated segfault

BodgeMaster-unfinished
BodgeMaster 2022-07-20 08:46:06 +02:00
parent 4659946a2f
commit a0d2974f0a
1 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ int main(int argc, char* argv[]) {
std::vector<CLI::PositionalArgument> unknownFlagTestPositionalArguments;
const char** unknownFlagTestParameterList = new const char*[3];
const char** unknownFlagTestParameterList = new const char*[7];
unknownFlagTestParameterList[0] = "test";
unknownFlagTestParameterList[1] = "-a";
unknownFlagTestParameterList[2] = "-1";
@ -242,7 +242,7 @@ int main(int argc, char* argv[]) {
std::vector<CLI::PositionalArgument> unknownArgumentTestPositionalArguments;
const char** unknownArgumentTestParameterList = new const char*[3];
const char** unknownArgumentTestParameterList = new const char*[7];
unknownArgumentTestParameterList[0] = "test";
unknownArgumentTestParameterList[1] = "-a123";
unknownArgumentTestParameterList[2] = "-1a";