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>
This commit is contained in:
parent
7fb38daf25
commit
d069bcca6c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user