summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fuzzer/FuzzerCommand.h')
-rw-r--r--lib/fuzzer/FuzzerCommand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuzzer/FuzzerCommand.h b/lib/fuzzer/FuzzerCommand.h
index 358f89094..c5500ed21 100644
--- a/lib/fuzzer/FuzzerCommand.h
+++ b/lib/fuzzer/FuzzerCommand.h
@@ -143,10 +143,10 @@ public:
std::stringstream SS;
for (auto arg : getArguments())
SS << arg << " ";
- if (isOutAndErrCombined())
- SS << "2>&1 ";
if (hasOutputFile())
SS << ">" << getOutputFile() << " ";
+ if (isOutAndErrCombined())
+ SS << "2>&1 ";
std::string result = SS.str();
if (!result.empty())
result = result.substr(0, result.length() - 1);