(main): Avoid an unnecessary system call introduced in previous patch.

This commit is contained in:
Paul Eggert 2006-03-09 20:54:39 +00:00
parent 708ba31420
commit dab9c7e59b

View File

@ -318,12 +318,7 @@ main (int argc, char **argv)
if (fstat (STDOUT_FILENO, &outstat) == 0
&& stat (NULL_DEVICE, &nullstat) == 0
&& 0 < same_file (&outstat, &nullstat))
comparison_type =
((fstat (STDERR_FILENO, &outstat) == 0
? 0 < same_file (&outstat, &nullstat)
: errno == EBADF)
? type_status
: type_no_stdout);
comparison_type = type_no_stdout;
}
/* If only a return code is needed,