diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index 76fd00e3c..b75fd5e83 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -714,7 +714,7 @@ namespace { } fputc('\n', output); PrintCallstack(output, ex); - fflush(f); + fflush(output); return EXCEPTION_EXECUTE_HANDLER; } }