Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make sure that the action don't fail miserably if we mix isend with sends in the...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 15 Mar 2011 12:38:25 +0000 (12:38 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 15 Mar 2011 12:38:25 +0000 (12:38 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9794 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/msg/actions/actions.c

index 255dd1b..091f7ea 100644 (file)
@@ -121,7 +121,7 @@ static void action_Isend(const char *const *action)
 
 static int task_matching(void*sent_task,void*ignored) {
   m_task_t t = (m_task_t)sent_task;
 
 static int task_matching(void*sent_task,void*ignored) {
   m_task_t t = (m_task_t)sent_task;
-  if (MSG_task_get_data_size(t)<65536)
+  if (t!=NULL && MSG_task_get_data_size(t)<65536)
     return 1; /* that's supposed to be already arrived */
   return 0; /* rendez-vous mode: it's not there yet */
 }
     return 1; /* that's supposed to be already arrived */
   return 0; /* rendez-vous mode: it's not there yet */
 }