From c2bba75e5a7830a0d64f2ebf1b455e69382ea3ca Mon Sep 17 00:00:00 2001 From: Trianta <56975502+Trimutex@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:22:47 -0500 Subject: [PATCH] read-arff: added case of 0 line size to check --- src/arff/arff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arff/arff.cpp b/src/arff/arff.cpp index 49dc8ef..73c17c1 100644 --- a/src/arff/arff.cpp +++ b/src/arff/arff.cpp @@ -64,7 +64,7 @@ namespace ARFF { } std::string line; while (std::getline(dataFile, line)) { - if (line.size() == 1) { continue; } + if ((line.size() == 0) || (line.size() == 1)) { continue; } switch (line.at(0)) { case '%': // Comment line in data