diff options
Diffstat (limited to 'datatest.cpp')
-rw-r--r-- | datatest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datatest.cpp b/datatest.cpp index 80d7e06..cd43175 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -358,7 +358,7 @@ bool GetField(std::istream &is, std::string &name, std::string &value) is.clear(); is.ignore(); - if (value[value.size()-1] == '\\') + if (!value.empty() && value[value.size()-1] == '\\') { value.resize(value.size()-1); continueLine = true; |