From 6a1e0c2373e28989ba3816d72bcac25bf47fd58a Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 22 Feb 2008 02:55:02 +0000 Subject: r18356@catbus: nickm | 2008-02-21 21:54:55 -0500 Remove redundant check from container.c that gcc 4.2 didnt like svn:r13668 --- src/common/container.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/common/container.c') 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; } -- cgit v1.2.3-54-g00ecf