mirror of
https://github.com/fluencelabs/redis
synced 2025-05-20 06:01:20 +00:00
Ignore sdsrange return value.
This commit is contained in:
parent
f899ab55ca
commit
c3e1724a57
@ -438,7 +438,7 @@ sds getAbsolutePath(char *filename) {
|
||||
while (sdslen(relpath) >= 3 &&
|
||||
relpath[0] == '.' && relpath[1] == '.' && relpath[2] == '/')
|
||||
{
|
||||
relpath = sdsrange(relpath,3,-1);
|
||||
sdsrange(relpath,3,-1);
|
||||
if (sdslen(abspath) > 1) {
|
||||
char *p = abspath + sdslen(abspath)-2;
|
||||
int trimlen = 1;
|
||||
@ -447,7 +447,7 @@ sds getAbsolutePath(char *filename) {
|
||||
p--;
|
||||
trimlen++;
|
||||
}
|
||||
abspath = sdsrange(abspath,0,-(trimlen+1));
|
||||
sdsrange(abspath,0,-(trimlen+1));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user