mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
avoid closing uninitialized fd
If the system does not support bypass cache, we will close fd, but it is uninitialized.
This commit is contained in:
parent
730cc8d783
commit
0a045f01cf
@ -4010,7 +4010,7 @@ qemuDomainSaveImageOpen(struct qemud_driver *driver,
|
||||
const char *xmlin, int state, bool edit,
|
||||
bool unlink_corrupt)
|
||||
{
|
||||
int fd;
|
||||
int fd = -1;
|
||||
struct qemud_save_header header;
|
||||
char *xml = NULL;
|
||||
virDomainDefPtr def = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user