From 60ebc1d5b8a6a77c8994fa64c1fef583b449558a Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 9 May 2017 22:09:20 +0200 Subject: [PATCH] do not attempt parsing if string is empty --- src/process.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/process.cc b/src/process.cc index 4aa6e84..9f43513 100644 --- a/src/process.cc +++ b/src/process.cc @@ -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};