summaryrefslogtreecommitdiff
path: root/lib/str.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-04-04 10:51:08 +0200
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-04-04 10:51:08 +0200
commit1771b6e779fc2d89aef4153a65bab7b99b6e8df3 (patch)
tree0f3e57639cdd58e802a7c0f6d0c700dfa26f2c1b /lib/str.c
parent59fd1e9d1d75cedfa9c1f6a06fd3f367fe644360 (diff)
downloadgnu-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/str.c b/lib/str.c
index 9a89f30..f3cf89b 100644
--- a/lib/str.c
+++ b/lib/str.c
@@ -274,7 +274,7 @@ xtoi (
CHAR16 c;
// skip preceeding white space
- while (*str && *str == ' ') {
+ while (*str == ' ') {
str += 1;
}