From 78c3b3b71cf9ae00662c0a00f7ab28acbcd0295d Mon Sep 17 00:00:00 2001 From: OscarL Date: Tue, 26 Nov 2024 02:40:06 -0300 Subject: [PATCH] Further corrections to code style. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jérôme Duval --- lpe/lpe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lpe/lpe.cpp b/lpe/lpe.cpp index 15c771b..c1905de 100644 --- a/lpe/lpe.cpp +++ b/lpe/lpe.cpp @@ -193,7 +193,7 @@ int main(int argc, char *argv[]) path = argv[i]; err = e.SetTo(path.String()); - if (err == B_OK && !e.Exists() && path.FindLast(':')) + if (err == B_OK && !e.Exists() && path.FindLast(':') >= 0) { // remove final ':', if any. if (path[path.Length() - 1] == ':')