Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix conversion from char 0 into char*
authorGabriel Corona <gabriel.corona@loria.fr>
Thu, 2 Oct 2014 09:05:50 +0000 (11:05 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 2 Oct 2014 09:05:50 +0000 (11:05 +0200)
src/mc/mc_request.c

index 56696d6..cb13045 100644 (file)
@@ -328,12 +328,12 @@ char *MC_request_to_string(smx_simcall_t req, int value)
 
   case SIMCALL_MC_SNAPSHOT:
     type = xbt_strdup("MC_SNAPSHOT");
 
   case SIMCALL_MC_SNAPSHOT:
     type = xbt_strdup("MC_SNAPSHOT");
-    args = '\0';
+    args = NULL;
     break;
 
   case SIMCALL_MC_COMPARE_SNAPSHOTS:
     type = xbt_strdup("MC_COMPARE_SNAPSHOTS");
     break;
 
   case SIMCALL_MC_COMPARE_SNAPSHOTS:
     type = xbt_strdup("MC_COMPARE_SNAPSHOTS");
-    args = '\0';
+    args = NULL;
     break;
 
   case SIMCALL_MC_RANDOM:
     break;
 
   case SIMCALL_MC_RANDOM: