aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-09 13:36:13 -0800
committerChris Robinson <[email protected]>2018-12-09 13:36:13 -0800
commitd7d98708391e4701f3e27794982af55436ba6d41 (patch)
tree0576ed40431a4682441d206d86aa6f37e25e8d10 /Alc/hrtf.cpp
parent621f0dfe73cb76d670f205955b79d1554f1bbcf6 (diff)
Add default construction to HrtfEntry
Diffstat (limited to 'Alc/hrtf.cpp')
-rw-r--r--Alc/hrtf.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Alc/hrtf.cpp b/Alc/hrtf.cpp
index de964776..230574a9 100644
--- a/Alc/hrtf.cpp
+++ b/Alc/hrtf.cpp
@@ -44,7 +44,7 @@
struct HrtfEntry {
- Hrtf *handle;
+ Hrtf *handle{nullptr};
char filename[];
DEF_PLACE_NEWDEL()
@@ -986,7 +986,6 @@ void AddFileEntry(al::vector<EnumeratedHrtf> &list, const std::string &filename)
(al_calloc(DEF_ALIGN, FAM_SIZE(HrtfEntry, filename, filename.length()+1)))
HrtfEntry{}});
loaded_entry = LoadedHrtfs.end()-1;
- (*loaded_entry)->handle = nullptr;
strcpy((*loaded_entry)->filename, filename.c_str());
}
@@ -1049,7 +1048,6 @@ void AddBuiltInEntry(al::vector<EnumeratedHrtf> &list, const std::string &filena
(al_calloc(DEF_ALIGN, FAM_SIZE(HrtfEntry, filename, namelen)))
HrtfEntry{}});
loaded_entry = LoadedHrtfs.end()-1;
- (*loaded_entry)->handle = nullptr;
snprintf((*loaded_entry)->filename, namelen, "!%u_%s",
residx, filename.c_str());
}