diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-03-13 13:26:41 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-03-13 13:26:41 +0000 |
commit | 864f7a0ceb89bd28b842ec5e0d0ed6abf112be9c (patch) | |
tree | f30468f446dfdde7bc27bc6c82de67f227721b05 /datatest.cpp | |
parent | fc3a5e7e8f632112420df1d99f0d2080f19477d0 (diff) | |
download | cryptopp-864f7a0ceb89bd28b842ec5e0d0ed6abf112be9c.tar.gz |
fix MSVC 2005 warnings
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@217 57ff6487-cd31-0410-9ec3-f628ee90f5f0
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; |