]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed an error where -c argument wasn't working for single files
authorPaul Cruz <paulcruz74@fb.com>
Tue, 11 Jul 2017 17:23:25 +0000 (10:23 -0700)
committerPaul Cruz <paulcruz74@fb.com>
Tue, 11 Jul 2017 17:23:25 +0000 (10:23 -0700)
contrib/adaptive-compression/adapt.c

index 2bf8bb81e57b465b113eea5d3c8954da9eced21a..e03bcc8e1ced2c9a69d079cbdb9fd49c57c59a56 100644 (file)
@@ -2,7 +2,7 @@
 #define PRINT(...) fprintf(stdout, __VA_ARGS__)
 #define DEBUG(l, ...) { if (g_displayLevel>=l) { DISPLAY(__VA_ARGS__); } }
 #define FILE_CHUNK_SIZE 4 << 20
-#define MAX_NUM_JOBS 2;
+#define MAX_NUM_JOBS 2
 #define stdinmark  "/*stdin*\\"
 #define stdoutmark "/*stdout*\\"
 #define MAX_PATH 256
@@ -612,6 +612,7 @@ int main(int argCount, const char* argv[])
                     break;
                 case 'c':
                     forceStdout = 1;
+                    outFilename = stdoutmark;
                     break;
                 default:
                     DISPLAY("Error: invalid argument provided\n");