diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2014-09-23 16:53:34 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2014-09-25 14:56:26 -0400 |
commit | a94496fbb672fce43b66f56ed0bbd69a560d5654 (patch) | |
tree | 956d4dad0795f14e89c4c03f2fd59fd1a5ffdf06 /src | |
parent | 00522cd45b7c093975a7684876b26abeced58da9 (diff) |
tests: don't split an empty string
Diffstat (limited to 'src')
-rw-r--r-- | src/test/getarg_tests.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/getarg_tests.cpp b/src/test/getarg_tests.cpp index 8cadcdd716..8a984304f4 100644 --- a/src/test/getarg_tests.cpp +++ b/src/test/getarg_tests.cpp @@ -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"); |