From: Michael Tokarev Date: Sat, 5 Oct 2013 09:18:28 +0000 (+0400) Subject: migration: Fix compiler warning ('caps' may be used uninitialized) X-Git-Tag: qemu-xen-4.5.0-rc1~434^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=387eedebf60a463ba30833588f10123da296ba4d;p=qemu-xen.git migration: Fix compiler warning ('caps' may be used uninitialized) Signed-off-by: Michael Tokarev Reviewed-by: Stefan Weil --- diff --git a/migration.c b/migration.c index b4f8462ae4..2b1ab20c54 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));