projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddd2363
)
migration: Fix compiler warning ('caps' may be used uninitialized)
author
Michael Tokarev
<mjt@tls.msk.ru>
Sat, 5 Oct 2013 09:18:28 +0000
(13:18 +0400)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Sat, 5 Oct 2013 10:02:29 +0000
(14:02 +0400)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
migration.c
patch
|
blob
|
history
diff --git
a/migration.c
b/migration.c
index
b4f8462
..
2b1ab20
100644
(file)
--- 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));