mirror of
https://github.com/facebook/zstd.git
synced 2026-01-06 11:21:19 +03:00
Properly brackets isatty if statement
¯\_(ツ)_/¯ this is my first commit in c
This commit is contained in:
@@ -2031,9 +2031,10 @@ static int FIO_listFile(fileInfo_t* total, const char* inFileName, int displayLe
|
||||
}
|
||||
|
||||
int FIO_listMultipleFiles(unsigned numFiles, const char** filenameTable, int displayLevel){
|
||||
if (!isatty(0))
|
||||
DISPLAYOUT("zstd --list does not support reading from standard input\n");
|
||||
if (!isatty(0)) {
|
||||
DISPLAYOUT("zstd: --list does not support reading from standard input\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (numFiles == 0) {
|
||||
DISPLAYOUT("No files given\n");
|
||||
|
||||
Reference in New Issue
Block a user