diff options
author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-04-07 12:48:31 +0200 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-04-07 14:37:46 +0200 |
commit | bd05c4b2def7defee3787df24e2cfb9f96900e6c (patch) | |
tree | a1bce53bfdbc9ccd2b97ad4d6edac97f9e8e5c2b /Src/utils.c | |
parent | 583419839f475990a02eacfb03ebb6ae6b2c48b9 (diff) | |
download | zsh-bd05c4b2def7defee3787df24e2cfb9f96900e6c.tar.gz zsh-bd05c4b2def7defee3787df24e2cfb9f96900e6c.tar.xz zsh-bd05c4b2def7defee3787df24e2cfb9f96900e6c.zip |
42595: remove dead code flagged by coverity
Diffstat (limited to 'Src/utils.c')
-rw-r--r-- | Src/utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Src/utils.c b/Src/utils.c index 3587c3622..c544b81bf 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -2486,9 +2486,7 @@ zstrtoul_underscore(const char *s, zulong *retval) base = 2, s++; else base = isset(OCTALZEROES) ? 8 : 10; - if (base < 2 || base > 36) { - return 0; - } else if (base <= 10) { + if (base <= 10) { for (; (*s >= '0' && *s < ('0' + base)) || *s == '_'; s++) { if (*s == '_') |