提交 0a045f01 编写于 作者: W Wen Congyang 提交者: Eric Blake

avoid closing uninitialized fd

If the system does not support bypass cache, we will close fd,
but it is uninitialized.
上级 730cc8d7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册