OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb38da
)
multifd: Initialize local variable
author
Juan Quintela
<quintela@redhat.com>
Mon, 13 Jan 2020 17:41:02 +0000
(18:41 +0100)
committer
Juan Quintela
<quintela@redhat.com>
Mon, 20 Jan 2020 08:08:53 +0000
(09:08 +0100)
Fill everything with zero, so the padding fields are also initialized.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
migration/ram.c
patch
|
blob
|
history
diff --git
a/migration/ram.c
b/migration/ram.c
index
96feb40
..
b9147bc
100644
(file)
--- a/
migration/ram.c
+++ b/
migration/ram.c
@@
-703,7
+703,7
@@
typedef struct {
static int multifd_send_initial_packet(MultiFDSendParams *p, Error **errp)
{
- MultiFDInit_t msg;
+ MultiFDInit_t msg
= {}
;
int ret;
msg.magic = cpu_to_be32(MULTIFD_MAGIC);