Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Survive NULL datadesc in datadesc_get_name; change the prototype of this function...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 6 Jun 2005 20:50:14 +0000 (20:50 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 6 Jun 2005 20:50:14 +0000 (20:50 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1351 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/gras/DataDesc/datadesc.c

index dcb8b9e..fca00c4 100644 (file)
@@ -127,9 +127,9 @@ gras_datadesc_exit(void) {
 }
 
 /** This is mainly to debug */
-char *
+const char *
 gras_datadesc_get_name(gras_datadesc_type_t ddt) {
-  return ddt->name;
+  return ddt?(const char*)ddt->name:"(null)";
 }
 /** This is mainly to debug */
 int