diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-04-04 10:51:08 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-04-04 10:51:08 +0200 |
commit | 1771b6e779fc2d89aef4153a65bab7b99b6e8df3 (patch) | |
tree | 0f3e57639cdd58e802a7c0f6d0c700dfa26f2c1b /lib/str.c | |
parent | 59fd1e9d1d75cedfa9c1f6a06fd3f367fe644360 (diff) | |
download | gnu-efi-1771b6e779fc2d89aef4153a65bab7b99b6e8df3.tar.gz |
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>
Diffstat (limited to 'lib/str.c')
-rw-r--r-- | lib/str.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -274,7 +274,7 @@ xtoi ( CHAR16 c; // skip preceeding white space - while (*str && *str == ' ') { + while (*str == ' ') { str += 1; } |