From 1771b6e779fc2d89aef4153a65bab7b99b6e8df3 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 4 Apr 2021 10:51:08 +0200 Subject: [PATCH] lisb/str.c: simplify xtoi() If str == ' ', str has to be non-zero. No extra check is needed. Signed-off-by: Heinrich Schuchardt --- lib/str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/str.c b/lib/str.c index 9a89f30..f3cf89b 100644 --- a/lib/str.c +++ b/lib/str.c @@ -274,7 +274,7 @@ xtoi ( CHAR16 c; // skip preceeding white space - while (*str && *str == ' ') { + while (*str == ' ') { str += 1; }