Browse Source

tests: don't split an empty string

0.10
Cory Fields 10 years ago
parent
commit
a94496fbb6
  1. 3
      src/test/getarg_tests.cpp

3
src/test/getarg_tests.cpp

@ -16,7 +16,8 @@ BOOST_AUTO_TEST_SUITE(getarg_tests) @@ -16,7 +16,8 @@ BOOST_AUTO_TEST_SUITE(getarg_tests)
static void ResetArgs(const std::string& strArg)
{
std::vector<std::string> vecArg;
boost::split(vecArg, strArg, boost::is_space(), boost::token_compress_on);
if (strArg.size())
boost::split(vecArg, strArg, boost::is_space(), boost::token_compress_on);
// Insert dummy executable name:
vecArg.insert(vecArg.begin(), "testbitcoin");

Loading…
Cancel
Save