From: mquinson Date: Thu, 20 Oct 2005 13:22:28 +0000 (+0000) Subject: Messages which the payload datatype descriptor is NULL contain 0 bytes as payload... X-Git-Tag: v3.3~3590 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/afeb30cf79d466f018395ed13dc6371539607894 Messages which the payload datatype descriptor is NULL contain 0 bytes as payload (strange, isnt it?) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1767 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/gras/DataDesc/datadesc.c b/src/gras/DataDesc/datadesc.c index fca00c4c02..004436f4db 100644 --- a/src/gras/DataDesc/datadesc.c +++ b/src/gras/DataDesc/datadesc.c @@ -144,7 +144,7 @@ gras_datadesc_get_id(gras_datadesc_type_t ddt) { * */ int gras_datadesc_size(gras_datadesc_type_t type) { - return type->size[GRAS_THISARCH]; + return type?type->size[GRAS_THISARCH]:0; } /**