summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-08-25 10:36:04 +0200
committerantirez <antirez@gmail.com>2014-08-25 10:36:26 +0200
commit8eeb1802ec42682a614a5ebca318a0ba44ca7c03 (patch)
tree3f33fc645c9a99fedbf7ffd1b8cdfedc0658e546
parent209f266cc534471daa03501b2802f08e4fca4fe6 (diff)
downloadredis-8eeb1802ec42682a614a5ebca318a0ba44ca7c03.tar.gz
No longer useful assert removed from sdsIncrLen().
-rw-r--r--src/sds.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/sds.c b/src/sds.c
index 4adcc06a8..95454e997 100644
--- a/src/sds.c
+++ b/src/sds.c
@@ -206,7 +206,6 @@ void sdsIncrLen(sds s, int incr) {
assert(sh->len >= (unsigned int)(-incr));
sh->len += incr;
sh->free -= incr;
- assert(sh->free >= 0);
s[sh->len] = '\0';
}