tests: don't split an empty string
This commit is contained in:
parent
00522cd45b
commit
a94496fbb6
1 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@ BOOST_AUTO_TEST_SUITE(getarg_tests)
|
||||||
static void ResetArgs(const std::string& strArg)
|
static void ResetArgs(const std::string& strArg)
|
||||||
{
|
{
|
||||||
std::vector<std::string> vecArg;
|
std::vector<std::string> vecArg;
|
||||||
|
if (strArg.size())
|
||||||
boost::split(vecArg, strArg, boost::is_space(), boost::token_compress_on);
|
boost::split(vecArg, strArg, boost::is_space(), boost::token_compress_on);
|
||||||
|
|
||||||
// Insert dummy executable name:
|
// Insert dummy executable name:
|
||||||
|
|
Loading…
Reference in a new issue