summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-03-21 17:49:30 -0400
committerJeffrey Walton <noloader@gmail.com>2021-03-21 17:49:30 -0400
commite415713f380916eed1f5dac4f45042f7461c5f8a (patch)
treeda686c57e9a5f893f9e449646567d9cc30aac71c /datatest.cpp
parenta60c811310c8f8e19546da384f68ab1f71615ba1 (diff)
downloadcryptopp-git-e415713f380916eed1f5dac4f45042f7461c5f8a.tar.gz
Handle line with whitespace gracefully
Diffstat (limited to 'datatest.cpp')
-rw-r--r--datatest.cpp1
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;