From 3ccc17a4a5d00fafcbd9b385689837e94682c010 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 24 Jul 2013 18:59:36 +0200 Subject: [PATCH] Ignore sdsrange return value. --- src/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.c b/src/util.c index 022a6adf4..37534dfb9 100644 --- a/src/util.c +++ b/src/util.c @@ -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)); } }