mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-13 11:21:13 +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>
|
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,
|
* Matthew Martin: 42604: Completion/BSD/Command/_signify,
|
||||||
Completion/BSD/Command/_vmctl: new completions for OpenBSD's
|
Completion/BSD/Command/_vmctl: new completions for OpenBSD's
|
||||||
signify and vmctl
|
signify and vmctl
|
||||||
|
|
|
@ -2486,9 +2486,7 @@ zstrtoul_underscore(const char *s, zulong *retval)
|
||||||
base = 2, s++;
|
base = 2, s++;
|
||||||
else
|
else
|
||||||
base = isset(OCTALZEROES) ? 8 : 10;
|
base = isset(OCTALZEROES) ? 8 : 10;
|
||||||
if (base < 2 || base > 36) {
|
if (base <= 10) {
|
||||||
return 0;
|
|
||||||
} else if (base <= 10) {
|
|
||||||
for (; (*s >= '0' && *s < ('0' + base)) ||
|
for (; (*s >= '0' && *s < ('0' + base)) ||
|
||||||
*s == '_'; s++) {
|
*s == '_'; s++) {
|
||||||
if (*s == '_')
|
if (*s == '_')
|
||||||
|
|
Loading…
Reference in a new issue