diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-19 23:18:12 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-19 23:36:04 +0100 |
commit | 9c28892114175ddeb19d2684079f326ce36600de (patch) | |
tree | 017732a0d8ba9509b5a479067be51d2dca390f5f /src | |
parent | daa4b42cb6e7479bd725dd286a03007317c81039 (diff) | |
download | sds-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.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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'; } |