Fixing bug where messages are sent if list of negative length is specified.
authorIsaac Dooley <idooley2@illinois.edu>
Wed, 24 Jun 2009 19:40:29 +0000 (19:40 +0000)
committerIsaac Dooley <idooley2@illinois.edu>
Wed, 24 Jun 2009 19:40:29 +0000 (19:40 +0000)
src/conv-core/convcore.c

index 5c059f8ec0580af9bf0564580fafc51706b58b03..df5b167cfa0feb8bd781ff278c3396d3f8c40d9c 100644 (file)
@@ -2157,7 +2157,7 @@ void CmiFreeListSendFn(int npes, int *pes, int len, char *msg)
   for(i=0;i<npes-1;i++) {
     CmiSyncSend(pes[i], len, msg);
   }
-  if (npes)
+  if (npes>0)
     CmiSyncSendAndFree(pes[npes-1], len, msg);
   else 
     CmiFree(msg);