提交 34d3627a 编写于 作者: G Guido Günther 提交者: Cole Robinson

Fix uninitialized variables

detecet by

	http://honk.sigxcpu.org:8001/job/libvirt-build/348/console
(cherry picked from commit d01e427e)
上级 0e78179d
......@@ -2373,7 +2373,7 @@ int qemuMonitorRemoveHostNetwork(qemuMonitorPtr mon,
int vlan,
const char *netname)
{
int ret;
int ret = -1;
VIR_DEBUG("mon=%p netname=%s",
mon, netname);
......@@ -2505,7 +2505,7 @@ int qemuMonitorAttachDrive(qemuMonitorPtr mon,
mon, drivestr,
controllerAddr->domain, controllerAddr->bus,
controllerAddr->slot, controllerAddr->function);
int ret;
int ret = 1;
if (!mon) {
virReportError(VIR_ERR_INVALID_ARG, "%s",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册