1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-29 06:51:03 +02: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

@ -1,5 +1,7 @@
2018-04-07 Oliver Kiddle <okiddle@yahoo.co.uk>
* 42595: Src/utils.c: remove dead code flagged by coverity
* Matthew Martin: 42604: Completion/BSD/Command/_signify,
Completion/BSD/Command/_vmctl: new completions for OpenBSD's
signify and vmctl

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