Commit 8bbc1897 authored by Mariano Pérez Rodríguez's avatar Mariano Pérez Rodríguez
Browse files

Missing assert removal from sdsIncrLen()

Companion for 8eeb1802, but dealing with hiredis.
parent 119a7000
...@@ -206,7 +206,6 @@ void sdsIncrLen(sds s, int incr) { ...@@ -206,7 +206,6 @@ void sdsIncrLen(sds s, int incr) {
assert(sh->len >= (unsigned int)(-incr)); assert(sh->len >= (unsigned int)(-incr));
sh->len += incr; sh->len += incr;
sh->free -= incr; sh->free -= incr;
assert(sh->free >= 0);
s[sh->len] = '\0'; s[sh->len] = '\0';
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment