summaryrefslogtreecommitdiffstats
path: root/src/CommandOutput.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/CommandOutput.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/CommandOutput.cpp b/src/CommandOutput.cpp
index 48a695969..c221682a1 100644
--- a/src/CommandOutput.cpp
+++ b/src/CommandOutput.cpp
@@ -16,11 +16,9 @@
void cCommandOutputCallback::Out(const char * a_Fmt, ...)
{
AString Output;
- va_list args, argsCopy;
+ va_list args;
va_start(args, a_Fmt);
- va_start(argsCopy, a_Fmt);
- AppendVPrintf(Output, a_Fmt, args, argsCopy);
- va_end(argsCopy);
+ AppendVPrintf(Output, a_Fmt, args);
va_end(args);
Output.append("\n");
Out(Output);