mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: sound: Fix uninitialized model string
Commit e5f36698e3
introduces a
false-positive build failure in the sound card model handling switch.
Initialize the model to NULL although the value should never be used.
This commit is contained in:
parent
e5f36698e3
commit
a813d1c61b
@ -4674,7 +4674,7 @@ qemuBuildSoundDevStr(virDomainDefPtr def,
|
||||
virQEMUCapsPtr qemuCaps)
|
||||
{
|
||||
virBuffer buf = VIR_BUFFER_INITIALIZER;
|
||||
const char *model;
|
||||
const char *model = NULL;
|
||||
|
||||
/* Hack for devices with different names in QEMU and libvirt */
|
||||
switch ((virDomainSoundModel) sound->model) {
|
||||
|
Loading…
Reference in New Issue
Block a user