Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[simdag/dotloader,example/simdag/dot] correction of the warning at the
[simgrid.git] / examples / simdag / dot / dot_test.c
index 4a6da7b..3edb40d 100644 (file)
@@ -48,6 +48,10 @@ int main(int argc, char **argv)
 
   /* load the DOT file */
   dot = SD_dotload(argv[2]);
+  if(dot == NULL){
+    INFO0("No dot load may be you have a cycle in your graph");
+    return -1;
+  }
 
   /* Display all the tasks */
   INFO0