From: Arnaud Giersch Date: Wed, 23 Nov 2011 12:51:27 +0000 (+0100) Subject: There's no point in clearing mem in _xbt_dynar_expand. X-Git-Tag: exp_20120216~241^2~50 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/08f74b0316354974bde6994580df5c4ee8e04f34 There's no point in clearing mem in _xbt_dynar_expand. It's already done in _xbt_dynar_set_at_ptr. --- diff --git a/src/xbt/dynar.c b/src/xbt/dynar.c index 3eee73d4c0..2c435f59e0 100644 --- a/src/xbt/dynar.c +++ b/src/xbt/dynar.c @@ -97,8 +97,6 @@ static XBT_INLINE XBT_DEBUG("expand %p from %lu to %lu elements", dynar, old_size, new_size); - _xbt_clear_mem((char *)new_data + old_length, new_length - old_length); - dynar->size = new_size; dynar->data = new_data; }