Explorar o código

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

+ 1 - 1
lib/str.c

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