mirror of https://mirror.osredm.com/root/redis.git
Merge branch 'removeRedundantCheck' of https://github.com/dsomeshwar/redis into unstable
This commit is contained in:
commit
b9a8e56439
|
@ -368,9 +368,6 @@ int string2ll(const char *s, size_t slen, long long *value) {
|
||||||
if (p[0] >= '1' && p[0] <= '9') {
|
if (p[0] >= '1' && p[0] <= '9') {
|
||||||
v = p[0]-'0';
|
v = p[0]-'0';
|
||||||
p++; plen++;
|
p++; plen++;
|
||||||
} else if (p[0] == '0' && slen == 1) {
|
|
||||||
*value = 0;
|
|
||||||
return 1;
|
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue