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:
parent
583419839f
commit
bd05c4b2de
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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 == '_')
|
||||
|
|
Loading…
Reference in a new issue