summaryrefslogtreecommitdiff
path: root/benchmarks/stdio_benchmark.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-01-19 15:45:23 -0800
committerElliott Hughes <enh@google.com>2018-01-19 15:56:12 -0800
commit5cec377f49d6429b19895eb632225cd757ea611e (patch)
treebcd08fe1e6b656a5a4e235a225fbe88feb54a112 /benchmarks/stdio_benchmark.cpp
parent0d63a3c233040af004cc470d5f76547f3adc0148 (diff)
Address a bunch of clang-tidy complaints.
There were a bunch more unreasonable/incorrect ones, but these ones seemed legit. Nothing very interesting, though. Bug: N/A Test: ran tests, benchmarks Change-Id: If66971194d4a7b4bf6d0251bedb88e8cdc88a76f
Diffstat (limited to 'benchmarks/stdio_benchmark.cpp')
-rw-r--r--benchmarks/stdio_benchmark.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/stdio_benchmark.cpp b/benchmarks/stdio_benchmark.cpp
index 965a3ae9f..9c81e0fc0 100644
--- a/benchmarks/stdio_benchmark.cpp
+++ b/benchmarks/stdio_benchmark.cpp
@@ -29,7 +29,7 @@ static void FillFile(TemporaryFile& tf) {
memset(line, 'x', sizeof(line));
line[sizeof(line) - 1] = '\0';
- FILE* fp = fopen(tf.path, "w");
+ FILE* fp = fopen(tf.path, "we");
for (size_t i = 0; i < 4096; ++i) fputs(line, fp);
fclose(fp);
}