zero initialize the recv structure on the stack

Zero initialize the recv structure used by openipmi_read().
This commit is contained in:
Patrick Venture 2021-11-03 14:10:53 -07:00 committed by Alexander Amelkin
parent a24a512bdd
commit 5ac7f6a54e

View File

@ -422,7 +422,7 @@ static int
openipmi_read(struct ipmi_event_intf * eintf) openipmi_read(struct ipmi_event_intf * eintf)
{ {
struct ipmi_addr addr; struct ipmi_addr addr;
struct ipmi_recv recv; struct ipmi_recv recv = {};
uint8_t data[80]; uint8_t data[80];
int rv; int rv;