]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Properly brackets isatty if statement
authorTopher Lubaway <asimplechris@gmail.com>
Mon, 11 Jun 2018 19:19:15 +0000 (12:19 -0700)
committerTopher Lubaway <asimplechris@gmail.com>
Mon, 11 Jun 2018 19:19:15 +0000 (12:19 -0700)
 ¯\_(ツ)_/¯ this is my first commit in c

programs/fileio.c

index a9833ae5e44f3011956f1e19526ec9223dcbab18..0cfc968fb0e2825b515a676c3f6d19142812a98d 100644 (file)
@@ -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");