From 9c28892114175ddeb19d2684079f326ce36600de Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 19 Jan 2015 23:18:12 +0100 Subject: sdsIncrLen: Remove assert for non-negative free The length and free struct members are size_t so cannot be negative. The assert also seem like it already was superfluous due to previous assert. --- src/sds.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/sds.c b/src/sds.c index 6c3b53b..cee0b85 100644 --- a/src/sds.c +++ b/src/sds.c @@ -717,7 +717,6 @@ void sdsIncrLen(sds s, size_t incr) { assert(sh->free >= incr); sh->len += incr; sh->free -= incr; - assert(sh->free >= 0); s[sh->len] = '\0'; } -- cgit v1.2.3-70-g09d2