mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-14 14:59:52 -04:00
Don't access devices if not present
This commit is contained in:
parent
7a5350c36d
commit
44b135f548
@ -523,7 +523,9 @@ void metadata_<LoggerPolicy>::dump(
|
||||
os << "symlinks: " << meta_.symlinks().size() << std::endl;
|
||||
os << "hardlinks: " << std::accumulate(nlinks_.begin(), nlinks_.end(), 0)
|
||||
<< std::endl;
|
||||
os << "devices: " << meta_.devices()->size() << std::endl;
|
||||
if (auto dev = meta_.devices()) {
|
||||
os << "devices: " << dev->size() << std::endl;
|
||||
}
|
||||
os << "symlink_table_offset: " << symlink_table_offset_ << std::endl;
|
||||
os << "file_index_offset: " << file_index_offset_ << std::endl;
|
||||
os << "dev_index_offset: " << dev_index_offset_ << std::endl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user