Explorar el Código

starpu_fxt_tool: fix segfault when using parameter -number-events

Philippe SWARTVAGHER hace 4 años
padre
commit
125bce4e70
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tools/starpu_fxt_tool.c

+ 1 - 1
tools/starpu_fxt_tool.c

@@ -107,7 +107,7 @@ static int parse_args(int argc, char **argv)
 
 		if (strcmp(argv[i], "-number-events") == 0)
 		{
-			options.number_events_path = "number_events.data";
+			options.number_events_path = strdup("number_events.data");
 			reading_input_filenames = 0;
 			continue;
 		}