commit | bcec54575c210717fecf9ace352db4fe6b2dd51b | [log] [tgz] |
---|---|---|
author | Inseob Kim <inseob@google.com> | Fri Nov 12 10:53:53 2021 +0900 |
committer | Inseob Kim <inseob@google.com> | Fri Nov 12 10:53:53 2021 +0900 |
tree | dcab8263e56b99a12fb5ee9881bed770084a26bf | |
parent | 384bf6afedff622467fa9c3601b05bbb5320b180 [diff] |
Fix potential uninitialized variables bug Test: build Change-Id: I6865974e3f73f3c24cf2a7931a4fa897abc8e47d
diff --git a/tests/benchmark/fs_benchmark.cpp b/tests/benchmark/fs_benchmark.cpp index 583480e..220e004 100644 --- a/tests/benchmark/fs_benchmark.cpp +++ b/tests/benchmark/fs_benchmark.cpp
@@ -176,7 +176,7 @@ std::printf("total %" PRIu64 " bytes, took %.3g seconds ", res->size, elapsed_time); double speed = res->size / elapsed_time; - const char* unit; + const char* unit = "bytes"; if (speed >= 1000) { speed /= 1024; unit = "KB";