diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-22 02:55:02 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-22 02:55:02 +0000 |
commit | 6a1e0c2373e28989ba3816d72bcac25bf47fd58a (patch) | |
tree | 11cbec6678868b45ce017a6b2168845f7b040eb1 /src/common/container.c | |
parent | 67f59780014f2b55bffef20a6dea045bb3b75a65 (diff) | |
download | tor-6a1e0c2373e28989ba3816d72bcac25bf47fd58a.tar.gz tor-6a1e0c2373e28989ba3816d72bcac25bf47fd58a.zip |
r18356@catbus: nickm | 2008-02-21 21:54:55 -0500
Remove redundant check from container.c that gcc 4.2 didnt like
svn:r13668
Diffstat (limited to 'src/common/container.c')
-rw-r--r-- | src/common/container.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/common/container.c b/src/common/container.c index 8e507486c8..a33a70116e 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -92,7 +92,6 @@ smartlist_add_all(smartlist_t *s1, const smartlist_t *s2) int new_size = s1->num_used + s2->num_used; tor_assert(new_size >= s1->num_used); /* check for overflow. */ smartlist_ensure_capacity(s1, new_size); - tor_assert(s1->capacity >= new_size); memcpy(s1->list + s1->num_used, s2->list, s2->num_used*sizeof(void*)); s1->num_used = new_size; } |