mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
removing redundant check
This commit is contained in:
parent
1c95c07596
commit
bb5b8b3a6f
@ -368,9 +368,6 @@ int string2ll(const char *s, size_t slen, long long *value) {
|
||||
if (p[0] >= '1' && p[0] <= '9') {
|
||||
v = p[0]-'0';
|
||||
p++; plen++;
|
||||
} else if (p[0] == '0' && slen == 1) {
|
||||
*value = 0;
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user