diff options
author | Juan Quintela <quintela@redhat.com> | 2020-01-13 18:41:02 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2020-01-20 09:08:53 +0100 |
commit | d069bcca6c8cfcc1f2b056cb794ad726ab7c5f16 (patch) | |
tree | fd630b603d72034299e5efaacb527245c7971f24 /migration | |
parent | 7fb38daf256bd1bcbcb5ea556422283d0d55a1b1 (diff) |
multifd: Initialize local variable
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>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/ram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/ram.c b/migration/ram.c index 96feb4062c..b9147bcca3 100644 --- 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); |