mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fix uninitialized variables
detecet by http://honk.sigxcpu.org:8001/job/libvirt-build/348/console
This commit is contained in:
parent
3d7f6649e8
commit
d01e427e01
@ -2408,7 +2408,7 @@ int qemuMonitorRemoveHostNetwork(qemuMonitorPtr mon,
|
|||||||
int vlan,
|
int vlan,
|
||||||
const char *netname)
|
const char *netname)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = -1;
|
||||||
VIR_DEBUG("mon=%p netname=%s",
|
VIR_DEBUG("mon=%p netname=%s",
|
||||||
mon, netname);
|
mon, netname);
|
||||||
|
|
||||||
@ -2541,7 +2541,7 @@ int qemuMonitorAttachDrive(qemuMonitorPtr mon,
|
|||||||
mon, drivestr,
|
mon, drivestr,
|
||||||
controllerAddr->domain, controllerAddr->bus,
|
controllerAddr->domain, controllerAddr->bus,
|
||||||
controllerAddr->slot, controllerAddr->function);
|
controllerAddr->slot, controllerAddr->function);
|
||||||
int ret;
|
int ret = 1;
|
||||||
|
|
||||||
if (!mon) {
|
if (!mon) {
|
||||||
virReportError(VIR_ERR_INVALID_ARG, "%s",
|
virReportError(VIR_ERR_INVALID_ARG, "%s",
|
||||||
|
Loading…
Reference in New Issue
Block a user