diff options
| author | Cory Fields <[email protected]> | 2014-09-23 16:53:34 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2014-09-25 14:56:26 -0400 |
| commit | a94496fbb672fce43b66f56ed0bbd69a560d5654 (patch) | |
| tree | 956d4dad0795f14e89c4c03f2fd59fd1a5ffdf06 /src/test/getarg_tests.cpp | |
| parent | depends: disable reduced exports for debug builds (diff) | |
| download | discoin-a94496fbb672fce43b66f56ed0bbd69a560d5654.tar.xz discoin-a94496fbb672fce43b66f56ed0bbd69a560d5654.zip | |
tests: don't split an empty string
Diffstat (limited to 'src/test/getarg_tests.cpp')
| -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 8cadcdd71..8a984304f 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"); |