mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +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
c56f17e543
commit
b5eab6a984
@ -738,7 +738,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…
Reference in New Issue
Block a user