Explorar o código

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>
Heinrich Schuchardt %!s(int64=3) %!d(string=hai) anos
pai
achega
e2fc15ae0e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/str.c

+ 1 - 1
lib/str.c

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