lisb/str.c: simplify xtoi()

If str == ' ', str has to be non-zero. No extra check is needed.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Heinrich Schuchardt 2021-04-04 10:51:08 +02:00
parent 59fd1e9d1d
commit 1771b6e779

View File

@ -274,7 +274,7 @@ xtoi (
CHAR16 c; CHAR16 c;
// skip preceeding white space // skip preceeding white space
while (*str && *str == ' ') { while (*str == ' ') {
str += 1; str += 1;
} }