mirror of https://gitee.com/openkylin/libvirt.git
virFileNBDDeviceAssociate: Avoid use of uninitialized variable
The @qemunbd variable can be used uninitialized.
This commit is contained in:
parent
32d7e2481b
commit
2dba0323ff
|
@ -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…
Reference in New Issue