From: Nick Terrell Date: Wed, 26 Oct 2016 07:09:39 +0000 (-0700) Subject: [pzstd] Fix test mode for streaming input X-Git-Tag: v1.1.1~5^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac4310d303f363df6b0ccea32cedbb6f6a893f00;p=thirdparty%2Fzstd.git [pzstd] Fix test mode for streaming input --- diff --git a/contrib/pzstd/Options.cpp b/contrib/pzstd/Options.cpp index ece8c0782..18c069eae 100644 --- a/contrib/pzstd/Options.cpp +++ b/contrib/pzstd/Options.cpp @@ -303,6 +303,12 @@ Options::Status Options::parse(int argc, const char **argv) { } // while (*options != 0); } // for (int i = 1; i < argc; ++i); + // Set options for test mode + if (test) { + outputFile = nullOutput; + keepSource = true; + } + // Input file defaults to standard input if not provided. if (localInputFiles.empty()) { localInputFiles.emplace_back(kStdIn); @@ -399,11 +405,6 @@ Options::Status Options::parse(int argc, const char **argv) { verbosity = 1; } - // Set options for test mode - if (test) { - outputFile = nullOutput; - keepSource = true; - } return Status::Success; }