summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Venture <pstrinkle@users.noreply.github.com>2021-11-03 14:10:53 -0700
committerAlexander Amelkin <mocbuhtig@amelkin.msk.ru>2022-02-05 23:55:26 +0300
commit5ac7f6a54e0a416fc37e962c2be87b16821cc771 (patch)
tree4b6da7534b9e27af74fcf5225f06eb5be79dd072
parenta24a512bdd57ffa8813294e80ad7159cd9d73e55 (diff)
downloadipmitool-5ac7f6a54e0a416fc37e962c2be87b16821cc771.tar.gz
zero initialize the recv structure on the stack
Zero initialize the recv structure used by openipmi_read().
-rw-r--r--src/ipmievd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipmievd.c b/src/ipmievd.c
index 2c19887..6a94b1f 100644
--- a/src/ipmievd.c
+++ b/src/ipmievd.c
@@ -422,7 +422,7 @@ static int
openipmi_read(struct ipmi_event_intf * eintf)
{
struct ipmi_addr addr;
- struct ipmi_recv recv;
+ struct ipmi_recv recv = {};
uint8_t data[80];
int rv;