1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 16:50:58 +01:00

42595: remove dead code flagged by coverity

This commit is contained in:
Oliver Kiddle 2018-04-07 12:48:31 +02:00
parent 583419839f
commit bd05c4b2de
2 changed files with 3 additions and 3 deletions

View file

@ -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 == '_')