mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 14:35:25 +00:00
virFileNBDDeviceAssociate: Avoid use of uninitialized variable
The @qemunbd variable can be used uninitialized.
(cherry picked from commit 2dba0323ff
)
This commit is contained in:
parent
4f4e1cbf1f
commit
28ca8b386c
@ -728,7 +728,7 @@ int virFileNBDDeviceAssociate(const char *file,
|
|||||||
char **dev)
|
char **dev)
|
||||||
{
|
{
|
||||||
char *nbddev;
|
char *nbddev;
|
||||||
char *qemunbd;
|
char *qemunbd = NULL;
|
||||||
virCommandPtr cmd = NULL;
|
virCommandPtr cmd = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
const char *fmtstr = NULL;
|
const char *fmtstr = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user