Browse Source

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 4 năm trước cách đây
mục cha
commit
1771b6e779
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
     }