qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PULL 01/30] multifd: Initialize local variable


From: Juan Quintela
Subject: [PULL 01/30] multifd: Initialize local variable
Date: Tue, 14 Jan 2020 12:38:57 +0100

Fill everything with zero, so the padding fields are also initialized.

Signed-off-by: Juan Quintela <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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]