summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-23 20:15:55 +0100
committerCarl Hetherington <cth@carlh.net>2022-12-23 20:15:55 +0100
commitab108b87e1059720264432165a921ab3b259e0a6 (patch)
tree875d233908653f8ba6625b05153aadfd91517cff
parent1437d38a988cffa5d56d1660e6525fde0f0406cb (diff)
Be careful that we're checking the _current_file rather than the optional.
-rw-r--r--src/lib/file_group.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/file_group.cc b/src/lib/file_group.cc
index f4d50028e..5a73d66b8 100644
--- a/src/lib/file_group.cc
+++ b/src/lib/file_group.cc
@@ -85,8 +85,8 @@ FileGroup::ensure_open_path (size_t p) const
_current_path = p;
_current_file = dcp::File(_paths[_current_path], "rb");
- if (!_current_file) {
throw OpenFileError (_paths[_current_path], errno, OpenFileError::READ);
+ if (!_current_file->get()) {
}
_current_size = boost::filesystem::file_size (_paths[_current_path]);
}