mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-10 13:41:35 +00:00
virFileNBDDeviceAssociate: Avoid use of uninitialized variable
The @qemunbd variable can be used uninitialized. (cherry picked from commit 2dba0323ff0cec31bdcea9dd3b2428af297401f2)
This commit is contained in:
parent
85240daba2
commit
af8952e924
@ -732,7 +732,7 @@ int virFileNBDDeviceAssociate(const char *file,
|
||||
char **dev)
|
||||
{
|
||||
char *nbddev;
|
||||
char *qemunbd;
|
||||
char *qemunbd = NULL;
|
||||
virCommandPtr cmd = NULL;
|
||||
int ret = -1;
|
||||
const char *fmtstr = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user