Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Survive NULL datadesc in datadesc_get_name; change the prototype of this function...
[simgrid.git] / 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