ncm: hot take, uninitialized data bad

This commit is contained in:
Michael Scire
2022-03-22 14:02:14 -07:00
committed by SciresM
parent dfcb5005d2
commit a89c5dd5d7
18 changed files with 36 additions and 36 deletions

View File

@@ -84,7 +84,7 @@ namespace ams::ncm {
fs::ContentStorageId content_storage_id;
sf::SharedPointer<IContentStorage> content_storage;
ContentStorageRoot() { /* ... */ }
ContentStorageRoot() : mount_name(), path(), storage_id(), content_storage_id(), content_storage() { /* ... */ }
};
struct ContentMetaDatabaseRoot {
@@ -100,7 +100,7 @@ namespace ams::ncm {
ContentMetaMemoryResource *memory_resource;
u32 max_content_metas;
ContentMetaDatabaseRoot() { /* ... */ }
ContentMetaDatabaseRoot() : mount_name(), path(), storage_id(), info(), content_meta_database(), kvs(util::nullopt), memory_resource(), max_content_metas() { /* ... */ }
};
private:
os::SdkRecursiveMutex m_mutex;