do not attempt parsing if string is empty

master
Daniel Kolesa 2017-05-09 22:09:20 +02:00
parent 5c6aab9290
commit 60ebc1d5b8
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ namespace detail {
OSTD_EXPORT void split_args_impl(
string_range const &str, void (*func)(string_range, void *), void *data
) {
if (!str.size()) {
return;
}
#ifndef OSTD_PLATFORM_WIN32
std::string strs{str};