From 01eb649882779fe89e393b89f4d9a3dad6c31c99 Mon Sep 17 00:00:00 2001 From: cristianrosa Date: Fri, 1 Oct 2010 12:35:12 +0000 Subject: [PATCH] Fix for msg_icomms test. Do not pass the address of a local variable to SIMIX_network_irecv().[Arnaud Giersch] git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8317 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/msg/gos.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/msg/gos.c b/src/msg/gos.c index d9f7c02287..d7a2e3ac10 100644 --- a/src/msg/gos.c +++ b/src/msg/gos.c @@ -465,7 +465,6 @@ msg_comm_t MSG_task_irecv(m_task_t * task, const char *alias) { smx_comm_t comm; smx_rdv_t rdv = MSG_mailbox_get_by_alias(alias)->rdv; msg_mailbox_t mailbox=MSG_mailbox_get_by_alias(alias); - size_t size = sizeof(void*); CHECK_HOST(); @@ -485,7 +484,7 @@ msg_comm_t MSG_task_irecv(m_task_t * task, const char *alias) { CRITICAL0("MSG_task_get() was asked to write in a non empty task struct."); /* Try to receive it by calling SIMIX network layer */ - return SIMIX_network_irecv(rdv, task, &size); + return SIMIX_network_irecv(rdv, task, NULL); } /** \ingroup msg_gos_functions * \brief Test the status of a communication. -- 2.20.1