From: mquinson Date: Tue, 20 Jun 2006 22:47:24 +0000 (+0000) Subject: Do really fill this with zeros X-Git-Tag: v3.3~2949 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/397e06f8d2c5a2af351acb61724c047844187b59 Do really fill this with zeros git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2409 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/xbt_matrix.c b/src/xbt/xbt_matrix.c index 0238b479c7..5dfb955a2b 100644 --- a/src/xbt/xbt_matrix.c +++ b/src/xbt/xbt_matrix.c @@ -132,7 +132,7 @@ void xbt_matrix_copy_values(xbt_matrix_t dst, xbt_matrix_t src, xbt_matrix_t xbt_matrix_double_new_zeros(int lines, int rows) { xbt_matrix_t res = xbt_matrix_new(lines, rows,sizeof(double),NULL); - memset(res->data,0,sizeof(res->data)); + memset(res->data,0, res->elmsize * res->lines * res->rows); return res; }