提交 0bff012d 编写于 作者: W Wen Congyang 提交者: Cole Robinson

avoid closing uninitialized fd

If the system does not support bypass cache, we will close fd,
but it is uninitialized.
(cherry picked from commit 0a045f01)
上级 d6f20a2d
......@@ -3867,7 +3867,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.
先完成此消息的编辑!
想要评论请 注册