]> Git Repo - qemu.git/commitdiff
multifd: Initialize local variable
authorJuan Quintela <[email protected]>
Mon, 13 Jan 2020 17:41:02 +0000 (18:41 +0100)
committerJuan Quintela <[email protected]>
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 <[email protected]>
Reviewed-by: Daniel P. BerrangĂ© <[email protected]>
migration/ram.c

index 96feb4062c0109ff8d9323f9c46af0ebd3e1e456..b9147bcca39e3e147ead83aaa8648877d4efe258 100644 (file)
@@ -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);
This page took 0.026683 seconds and 4 git commands to generate.