test/cli_argument_parser: fix programmer-generated segfault
parent
4659946a2f
commit
a0d2974f0a
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue