Skip to content

Commit bb157df

Browse files
committed
xrSound: remove Valgrind warning "Uninitialised value was created by a stack allocation"
1 parent 9c6829b commit bb157df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xrSound/OpenALDeviceList.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ constexpr pcstr AL_GENERIC_SOFTWARE = "Generic Software";
99

1010
struct ALDeviceDesc
1111
{
12-
string256 name;
12+
string256 name = { 0 };
1313
int minor_ver;
1414
int major_ver;
1515
union ESndProps
@@ -42,7 +42,7 @@ class ALDeviceList
4242
xr_vector<ALDeviceDesc> m_devices;
4343
string256 m_defaultDeviceName;
4444
void Enumerate();
45-
45+
4646
public:
4747
ALDeviceList();
4848
~ALDeviceList();

0 commit comments

Comments
 (0)