Skip to content

Commit ebeb225

Browse files
committed
win can return >1 for isatty
1 parent 7ed1549 commit ebeb225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pixz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ int main(int argc, char **argv) {
172172

173173
switch (op) {
174174
case OP_WRITE:
175-
if (isatty(fileno(gOutFile)) == 1)
175+
if (isatty(fileno(gOutFile)))
176176
usage("Refusing to output to a TTY");
177177
if (extreme)
178178
level |= LZMA_PRESET_EXTREME;

0 commit comments

Comments
 (0)