diff options
| author | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2024-01-05 17:32:49 +0100 |
|---|---|---|
| committer | Czarek Nakamoto <cyjan@mrcyjanek.net> | 2024-01-05 17:32:49 +0100 |
| commit | 54611055816001884a91c1760722de8c0af8b294 (patch) | |
| tree | 508d3591052104de516394c3140ec2e57a107be1 /libbridge/src/main/cpp/helpers.cpp | |
| parent | a2ef1040df905f00482597b50eaec62f4f7b99b1 (diff) | |
fix splitString, add logging
Diffstat (limited to 'libbridge/src/main/cpp/helpers.cpp')
| -rw-r--r-- | libbridge/src/main/cpp/helpers.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libbridge/src/main/cpp/helpers.cpp b/libbridge/src/main/cpp/helpers.cpp index fac131a..04befc6 100644 --- a/libbridge/src/main/cpp/helpers.cpp +++ b/libbridge/src/main/cpp/helpers.cpp @@ -146,6 +146,7 @@ const char* vectorToString(const std::set<uint32_t>& intSet, const std::string s std::set<std::string> splitString(const std::string& str, const std::string& delim) { std::set<std::string> tokens; + if (str.empty()) return tokens; size_t pos = 0; std::string token; std::string content = str; // Copy of str so we can safely erase content |
