diff options
Diffstat (limited to 'benchmarks/stdio_benchmark.cpp')
-rw-r--r-- | benchmarks/stdio_benchmark.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/stdio_benchmark.cpp b/benchmarks/stdio_benchmark.cpp index 9c81e0fc0..21d9dc002 100644 --- a/benchmarks/stdio_benchmark.cpp +++ b/benchmarks/stdio_benchmark.cpp @@ -43,7 +43,7 @@ void ReadWriteTest(benchmark::State& state, Fn f, bool buffered) { char* buf = new char[chunk_size]; if (!buffered) { - setvbuf(fp, 0, _IONBF, 0); + setvbuf(fp, nullptr, _IONBF, 0); } while (state.KeepRunning()) { |