diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-03-21 17:49:30 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-03-21 17:49:30 -0400 |
commit | e415713f380916eed1f5dac4f45042f7461c5f8a (patch) | |
tree | da686c57e9a5f893f9e449646567d9cc30aac71c /datatest.cpp | |
parent | a60c811310c8f8e19546da384f68ab1f71615ba1 (diff) | |
download | cryptopp-git-e415713f380916eed1f5dac4f45042f7461c5f8a.tar.gz |
Handle line with whitespace gracefully
Diffstat (limited to 'datatest.cpp')
-rw-r--r-- | datatest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/datatest.cpp b/datatest.cpp index 9155e83d..2338b9fc 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -1120,6 +1120,7 @@ bool GetField(std::istream &is, std::string &name, std::string &value) while (Readline(is, line))
{
// Eat empty lines and comments gracefully
+ line = TrimSpace(line);
if (line.empty() || line[0] == '#')
continue;
|