We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40e3355 commit 23e8ff5Copy full SHA for 23e8ff5
extension/data_loader/mmap_data_loader.cpp
@@ -181,9 +181,9 @@ Result<FreeableBuffer> MmapDataLoader::load(
181
size_t size,
182
ET_UNUSED const DataLoader::SegmentInfo& segment_info) const {
183
// Ensure read range is valid.
184
- auto err = validate_input(offset, size);
185
- if (err != Error::Ok) {
186
- return err;
+ auto validation_err = validate_input(offset, size);
+ if (validation_err != Error::Ok) {
+ return validation_err;
187
}
188
189
// mmap() will fail if the size is zero.
0 commit comments