mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
clean dead assignment, start is never used in sdstrim function (#8796)
This commit is contained in:
parent
61d3fdb474
commit
c2aff4c744
@ -745,10 +745,10 @@ sds sdscatfmt(sds s, char const *fmt, ...) {
|
||||
* Output will be just "HelloWorld".
|
||||
*/
|
||||
sds sdstrim(sds s, const char *cset) {
|
||||
char *start, *end, *sp, *ep;
|
||||
char *end, *sp, *ep;
|
||||
size_t len;
|
||||
|
||||
sp = start = s;
|
||||
sp = s;
|
||||
ep = end = s+sdslen(s)-1;
|
||||
while(sp <= end && strchr(cset, *sp)) sp++;
|
||||
while(ep > sp && strchr(cset, *ep)) ep--;
|
||||
|
Loading…
Reference in New Issue
Block a user