Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
yet another bunch of critical
[simgrid.git] / examples / msg / trace-host-user-variables / trace-host-user-variables.c
index f25f77b..82313df 100644 (file)
@@ -78,9 +78,9 @@ int main(int argc, char *argv[])
   }
 
   //create a customized viva graph configuration file
-  FILE *fp;
+  FILE *fp = NULL;
   fp = fopen ("viva_graph.plist", "w");
-  if (!fp){
+  if (fp == NULL){
     return 1;
   }
   fprintf (fp, "{\n node = (");