Skip to content

Commit

Permalink
Fixed uninitialized variable (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Feb 18, 2021
1 parent d0284e8 commit 5b60307
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/ecalhdf5/src/eh5_meas_dir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ eCAL::eh5::HDF5MeasDir::HDF5MeasDir(const std::string& path, eAccessType access
, file_split_counter_(-1)
, entries_counter_(0)
, max_size_per_file_(kDefaultMaxFileSizeMB * 1024 * 1024)
, access_(RDONLY) // Temporarily set it to RDONLY, so the leading "Close()" from the Open() function will not operate on the uninitialized variable.
{
Open(path, access);
}
Expand Down

0 comments on commit 5b60307

Please sign in to comment.