lib/str: simplify Atoi()

Checking that str is non-zero is superfluous in

	(*str && *str == ' ')

0x20 is always non-zero.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Heinrich Schuchardt 2021-06-21 21:58:13 +00:00
parent 500c10f191
commit e2fc15ae0e

View file

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