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: v1.7.0-rc0~75^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=387eedebf60a463ba30833588f10123da296ba4d;p=thirdparty%2Fqemu.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 b4f8462ae47..2b1ab20c54f 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));