aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-01-19 23:18:12 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-01-19 23:36:04 +0100
commit9c28892114175ddeb19d2684079f326ce36600de (patch)
tree017732a0d8ba9509b5a479067be51d2dca390f5f /src
parentdaa4b42cb6e7479bd725dd286a03007317c81039 (diff)
downloadsds-9c28892114175ddeb19d2684079f326ce36600de.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/sds.c1
1 files changed, 0 insertions, 1 deletions
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';
}