string.c (str_succ): remove a unnecessary assignment
This change will suppress Coverity Scan warnings
This commit is contained in:
parent
198281a71d
commit
3fd086ed56
1
string.c
1
string.c
@ -4142,7 +4142,6 @@ str_succ(VALUE str)
|
|||||||
if (neighbor == NEIGHBOR_NOT_CHAR && last_alnum) {
|
if (neighbor == NEIGHBOR_NOT_CHAR && last_alnum) {
|
||||||
if (ISALPHA(*last_alnum) ? ISDIGIT(*s) :
|
if (ISALPHA(*last_alnum) ? ISDIGIT(*s) :
|
||||||
ISDIGIT(*last_alnum) ? ISALPHA(*s) : 0) {
|
ISDIGIT(*last_alnum) ? ISALPHA(*s) : 0) {
|
||||||
s = last_alnum;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user