From: Paul Cruz Date: Tue, 11 Jul 2017 17:23:25 +0000 (-0700) Subject: fixed an error where -c argument wasn't working for single files X-Git-Tag: v1.3.1^2~13^2^2~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ec5928626b74f9f91b3de09026584ab41b7d4ad;p=thirdparty%2Fzstd.git fixed an error where -c argument wasn't working for single files --- diff --git a/contrib/adaptive-compression/adapt.c b/contrib/adaptive-compression/adapt.c index 2bf8bb81e..e03bcc8e1 100644 --- a/contrib/adaptive-compression/adapt.c +++ b/contrib/adaptive-compression/adapt.c @@ -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");