summaryrefslogtreecommitdiffstats
path: root/src/crypto/test/file_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/test/file_test.cc')
-rw-r--r--src/crypto/test/file_test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crypto/test/file_test.cc b/src/crypto/test/file_test.cc
index 8df6f9a..6723350 100644
--- a/src/crypto/test/file_test.cc
+++ b/src/crypto/test/file_test.cc
@@ -128,6 +128,7 @@ FileTest::ReadResult FileTest::ReadNext() {
const char *delimiter = FindDelimiter(buf);
if (delimiter == nullptr) {
fprintf(stderr, "Line %u: Could not parse attribute.\n", line_);
+ return kReadError;
}
std::string key = StripSpace(buf, delimiter - buf);
std::string value = StripSpace(delimiter + 1,