commit | 62872f5cb38e755a5325a7f4875a053bd357ef1a | [log] [tgz] |
---|---|---|
author | Willy Tu <wltu@google.com> | Thu Feb 24 15:53:42 2022 -0800 |
committer | Willy Tu <wltu@google.com> | Fri May 27 04:46:32 2022 +0000 |
tree | 0925ba1fa327613019ae45381ca0fda33f06d6e6 | |
parent | f3aa37a7d0ae9f360037292c11b865d85f175d83 [diff] [blame] |
binarystore: Cleanup optional config with default values. Change-Id: If76d85f7aafbec30756dd01d871a78389d6e87a8 Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/src/sys_file_impl.cpp b/src/sys_file_impl.cpp index 9fab76a..7aadfba 100644 --- a/src/sys_file_impl.cpp +++ b/src/sys_file_impl.cpp
@@ -25,7 +25,7 @@ sys(sys) { fd_ = sys->open(path.c_str(), O_RDWR); - offset_ = offset ? *offset : 0; + offset_ = offset.value_or(0); if (fd_ < 0) {