Received: from eggs.gnu.org ([2001:4830:134:3::10]:47601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSko1-0006VT-50 for qemu-devel@nongnu.org; Sun, 06 Oct 2013 05:39:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSknv-0003Lm-Vb for qemu-devel@nongnu.org; Sun, 06 Oct 2013 05:39:17 -0400 From: Michael Tokarev Date: Sun, 6 Oct 2013 13:32:59 +0400 Message-Id: <1381051979-25742-15-git-send-email-mjt@msgid.tls.msk.ru> In-Reply-To: <1381051979-25742-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1381051979-25742-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: [Qemu-devel] [PULL 14/14] migration: Fix compiler warning ('caps' may be used uninitialized) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com Cc: qemu-trivial@nongnu.org, Michael Tokarev , qemu-devel@nongnu.org Signed-off-by: Michael Tokarev Reviewed-by: Stefan Weil --- migration.c | 1 + 1 file changed, 1 insertion(+) diff --git a/migration.c b/migration.c index b4f8462..2b1ab20 100644 --- a/migration.c +++ b/migration.c @@ -150,6 +150,7 @@ MigrationCapabilityStatusList *qmp_query_migrate_capabilities(Error **errp) MigrationState *s = migrate_get_current(); int i; + caps = NULL; /* silence compiler warning */ for (i = 0; i < MIGRATION_CAPABILITY_MAX; i++) { if (head == NULL) { head = g_malloc0(sizeof(*caps)); -- 1.7.10.4