Преглед изворни кода

src/debug/traces/starpu_fxt.c: do nothing when no input files are provided

Nathalie Furmento пре 12 година
родитељ
комит
5eafd44d11
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      src/debug/traces/starpu_fxt.c

+ 5 - 1
src/debug/traces/starpu_fxt.c

@@ -1174,7 +1174,11 @@ void starpu_fxt_generate_trace(struct starpu_fxt_options *options)
 
 	starpu_fxt_paje_file_init(options);
 
-	if (options->ninputfiles == 1)
+	if (options->ninputfiles == 0)
+	{
+	     return;
+	}
+	else if (options->ninputfiles == 1)
 	{
 		/* we usually only have a single trace */
 		uint64_t file_start_time = starpu_fxt_find_start_time(options->filenames[0]);