Browse Source

fix starpu_fxt_tool -o

Lucas Nesi 4 years ago
parent
commit
27741af472
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tools/starpu_fxt_tool.c

+ 2 - 1
tools/starpu_fxt_tool.c

@@ -73,7 +73,8 @@ static int parse_args(int argc, char **argv)
 
 		if (strcmp(argv[i], "-o") == 0)
 		{
-			options.out_paje_path = argv[++i];
+			free(options.out_paje_path);
+			options.out_paje_path = strdup(argv[++i]);
 			reading_input_filenames = 0;
 			continue;
 		}