Explorar o código

starpu_fxt_tool: fix segfault when using parameter -number-events

Philippe SWARTVAGHER %!s(int64=4) %!d(string=hai) anos
pai
achega
125bce4e70
Modificáronse 1 ficheiros con 1 adicións e 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;
 		}