Browse Source

tools/starpu_fxt_stats.c: fix comparison test

Nathalie Furmento 11 years ago
parent
commit
c0576444eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/starpu_fxt_stats.c

+ 1 - 1
tools/starpu_fxt_stats.c

@@ -136,7 +136,7 @@ int main(int argc, char **argv)
 	else
 	{
 		fd_out = fopen(fout, "w");
-		if (fd_out < 0)
+		if (fd_out == NULL)
 		{
 			perror("open failed :");
 			exit(-1);