From e128a627fb8f39f4f4c11b782cef895bd79f0282 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 17 Sep 2012 13:15:49 +0100 Subject: Fix multiple errors where jump skips variable initialization. : 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. --- src/launch-unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/launch-unix.c') diff --git a/src/launch-unix.c b/src/launch-unix.c index ab0e9d07..778082c5 100644 --- a/src/launch-unix.c +++ b/src/launch-unix.c @@ -38,6 +38,8 @@ launch_unix (guestfs_h *g, const char *sockpath) { int r; struct sockaddr_un addr; + uint32_t size; + void *buf = NULL; if (g->qemu_params) { error (g, _("cannot set qemu parameters with the 'unix:' attach method")); @@ -75,8 +77,6 @@ launch_unix (guestfs_h *g, const char *sockpath) goto cleanup; } - uint32_t size; - void *buf = NULL; r = guestfs___recv_from_daemon (g, &size, &buf); free (buf); -- cgit