From e9e9a258815db3c50c4581d7a1a9d27a45fb058b Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 16 Oct 2004 22:56:03 +0000 Subject: [PATCH] i take back everything i've said about unit tests svn:r2547 --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/util.c b/src/common/util.c index 601eea35e5..d7f2f1a289 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 {