From f8245c15520fe4ef32480da8337c2c747000579b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 7 Jun 2016 06:55:32 -0400 Subject: [PATCH] data: Fixed separator detection - Thanks to Sergey Trofimov --- src/data.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/data.cpp b/src/data.cpp index 7c47dc6c..6f29dc08 100644 --- a/src/data.cpp +++ b/src/data.cpp @@ -653,9 +653,7 @@ Interval getLatestInterval (Database& database) { // inc YYYYMMDDTHHMMSSZ - YYYYMMDDTHHMMSSZ # ... // ^ 20 - auto separator = line.find (" - "); - if (separator != std::string::npos || - separator != 20) + if (line.find (" - ") != 20) { i.initialize (line); return i;