diff options
author | Roger Dingledine <arma@torproject.org> | 2004-10-16 22:56:03 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-10-16 22:56:03 +0000 |
commit | e9e9a258815db3c50c4581d7a1a9d27a45fb058b (patch) | |
tree | d04dc50f7a43e7ff2ab7326ca8629b6ed7190159 | |
parent | a1bf39f698cf2a27a7e73d05f37cba3a76d6e03d (diff) | |
download | tor-e9e9a258815db3c50c4581d7a1a9d27a45fb058b.tar tor-e9e9a258815db3c50c4581d7a1a9d27a45fb058b.tar.gz |
i take back everything i've said about unit tests
svn:r2547
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index 601eea35e..d7f2f1a28 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -551,7 +551,7 @@ void smartlist_insert(smartlist_t *sl, int idx, void *val) { tor_assert(sl); tor_assert(idx>=0); - tor_assert(idx < sl->num_used); + tor_assert(idx <= sl->num_used); if (idx == sl->num_used) { smartlist_add(sl, val); } else { |