summaryrefslogtreecommitdiffstats
path: root/src/launch-libvirt.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-09-17 13:15:49 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-09-17 13:37:06 +0100
commite128a627fb8f39f4f4c11b782cef895bd79f0282 (patch)
tree4c75d040a7441f5019d41d3f05790ed009e1ae80 /src/launch-libvirt.c
parentc387b69cba8f145438188b2b4567abbc9580ade0 (diff)
downloadlibguestfs-e128a627fb8f39f4f4c11b782cef895bd79f0282.tar.gz
libguestfs-e128a627fb8f39f4f4c11b782cef895bd79f0282.tar.xz
libguestfs-e128a627fb8f39f4f4c11b782cef895bd79f0282.zip
Fix multiple errors where jump skips variable initialization.
<file>: error: jump skips variable initialization [-Werror=jump-misses-init] This has only just appeared, possibly related to previous gnulib update. In any case, this is just code motion / cleanup.
Diffstat (limited to 'src/launch-libvirt.c')
-rw-r--r--src/launch-libvirt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c
index c4ca817f..619cc0eb 100644
--- a/src/launch-libvirt.c
+++ b/src/launch-libvirt.c
@@ -112,6 +112,8 @@ launch_libvirt (guestfs_h *g, const char *libvirt_uri)
char console_sock[256];
struct sockaddr_un addr;
int console = -1, r;
+ uint32_t size;
+ void *buf = NULL;
/* At present you must add drives before starting the appliance. In
* future when we enable hotplugging you won't need to do this.
@@ -338,8 +340,6 @@ launch_libvirt (guestfs_h *g, const char *libvirt_uri)
goto cleanup;
}
- uint32_t size;
- void *buf = NULL;
r = guestfs___recv_from_daemon (g, &size, &buf);
free (buf);