Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
There's no point in clearing mem in _xbt_dynar_expand.
[simgrid.git] / src / xbt / dynar.c
index 3eee73d..2c435f5 100644 (file)
@@ -97,8 +97,6 @@ static XBT_INLINE
 
     XBT_DEBUG("expand %p from %lu to %lu elements", dynar, old_size, new_size);
 
 
     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;
   }
     dynar->size = new_size;
     dynar->data = new_data;
   }