]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix uninitialized variables
authorGuido Günther <agx@sigxcpu.org>
Fri, 30 Nov 2012 17:51:28 +0000 (18:51 +0100)
committerGuido Günther <agx@sigxcpu.org>
Fri, 30 Nov 2012 18:12:06 +0000 (19:12 +0100)
detecet by

http://honk.sigxcpu.org:8001/job/libvirt-build/348/console

src/qemu/qemu_monitor.c

index c1f7c41c76812aef6d8584d69539be08a3024105..f85bb76c6b659647dd3fb8c3b17e2eb2209c2c7c 100644 (file)
@@ -2408,7 +2408,7 @@ int qemuMonitorRemoveHostNetwork(qemuMonitorPtr mon,
                                  int vlan,
                                  const char *netname)
 {
-    int ret;
+    int ret = -1;
     VIR_DEBUG("mon=%p netname=%s",
           mon, netname);
 
@@ -2541,7 +2541,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",