[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/29] multifd: Initialize local variable
From: |
Juan Quintela |
Subject: |
[PULL 01/29] multifd: Initialize local variable |
Date: |
Mon, 20 Jan 2020 11:33:12 +0100 |
Fill everything with zero, so the padding fields are also initialized.
Signed-off-by: Juan Quintela <address@hidden>
Reviewed-by: Daniel P. Berrangé <address@hidden>
---
migration/ram.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.24.1
- [PULL 00/29] Migration pull patches, Juan Quintela, 2020/01/20
- [PULL 01/29] multifd: Initialize local variable,
Juan Quintela <=
- [PULL 02/29] migration-test: Add migration multifd test, Juan Quintela, 2020/01/20
- [PULL 04/29] migration-test: introduce functions to handle string parameters, Juan Quintela, 2020/01/20
- [PULL 03/29] migration: Make sure that we don't call write() in case of error, Juan Quintela, 2020/01/20
- [PULL 05/29] runstate: ignore finishmigrate -> prelaunch transition, Juan Quintela, 2020/01/20
- [PULL 06/29] ram.c: remove unneeded labels, Juan Quintela, 2020/01/20
- [PULL 07/29] migration: Rate limit inside host pages, Juan Quintela, 2020/01/20
- [PULL 08/29] migration: Fix incorrect integer->float conversion caught by clang, Juan Quintela, 2020/01/20
- [PULL 09/29] migration: Fix the re-run check of the migrate-incoming command, Juan Quintela, 2020/01/20
- [PULL 10/29] misc: use QEMU_IS_ALIGNED, Juan Quintela, 2020/01/20
- [PULL 11/29] migration: add savevm_state_handler_remove(), Juan Quintela, 2020/01/20