From: dutot Date: Thu, 9 Feb 2006 10:25:03 +0000 (+0000) Subject: minor change : these initialisations were performed twice. I left the X-Git-Tag: v3.3~3449 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b912b1f0fd5ac64d5533fde6412c20bc0f81b2ba?ds=sidebyside minor change : these initialisations were performed twice. I left the second initialisations to be consistent with the other functions of the same file. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1909 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/msg/msg_test.c b/examples/msg/msg_test.c index 451dc02a1b..826a9efdc8 100644 --- a/examples/msg/msg_test.c +++ b/examples/msg/msg_test.c @@ -129,8 +129,8 @@ int slave(int argc, char *argv[]) int forwarder(int argc, char *argv[]) { int i; - int slaves_count = argc - 1; - m_host_t *slaves = calloc(slaves_count, sizeof(m_host_t)); + int slaves_count; + m_host_t *slaves; { /* Process organisation */ slaves_count = argc - 1;