aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Linker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Linker.cpp b/src/Linker.cpp
index 7d90d46..1546909 100644
--- a/src/Linker.cpp
+++ b/src/Linker.cpp
@@ -4,9 +4,9 @@
static void split_string(const std::string &str, char delimiter, std::function<bool(const char*,size_t)> callback) {
size_t index = 0;
while(index < str.size()) {
- const size_t end_index = str.find(delimiter, index);
+ size_t end_index = str.find(delimiter, index);
if(end_index == std::string::npos)
- break;
+ end_index = str.size();
if(!callback(&str[index], end_index - index))
break;