diff --git a/file/random_access_file_reader.cc b/file/random_access_file_reader.cc index f596aa019..b18cf4c06 100644 --- a/file/random_access_file_reader.cc +++ b/file/random_access_file_reader.cc @@ -163,6 +163,7 @@ FSReadRequest Align(const FSReadRequest& r, size_t alignment) { req.offset = static_cast( TruncateToPageBoundary(alignment, static_cast(r.offset))); req.len = Roundup(End(r), alignment) - req.offset; + req.scratch = nullptr; return req; }