diff --git a/pcsx2/Host/CubebAudioStream.cpp b/pcsx2/Host/CubebAudioStream.cpp index d1b512ba4d45f..7c960065dc21a 100644 --- a/pcsx2/Host/CubebAudioStream.cpp +++ b/pcsx2/Host/CubebAudioStream.cpp @@ -205,7 +205,7 @@ bool CubebAudioStream::Initialize(const char* driver_name, const char* device_na } cubeb_devid selected_device = nullptr; - cubeb_device_collection devices; + cubeb_device_collection devices = {}; bool devices_valid = false; if (device_name && *device_name) { @@ -350,7 +350,7 @@ std::vector AudioStream::GetCubebOutputDevices(const ch ScopedGuard context_cleanup([context]() { cubeb_destroy(context); }); - cubeb_device_collection devices; + cubeb_device_collection devices = {}; rv = cubeb_enumerate_devices(context, CUBEB_DEVICE_TYPE_OUTPUT, &devices); if (rv != CUBEB_OK) {