Browse Source

r18356@catbus: nickm | 2008-02-21 21:54:55 -0500
Remove redundant check from container.c that gcc 4.2 didnt like


svn:r13668

Nick Mathewson 16 years ago
parent
commit
6a1e0c2373
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/common/container.c

+ 0 - 1
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;
 }