Explorar o código

tools/starpu_fxt_stats.c: fix comparison test

Nathalie Furmento %!s(int64=12) %!d(string=hai) anos
pai
achega
c0576444eb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);