From 970ed62e716d1cb347e983c9a96647be5455e713 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= <thomas@t-8ch.de>
Date: Sat, 7 Jan 2023 14:36:11 +0000
Subject: [PATCH] ipc_msg_get_limits: always initialize memory

---
 sys-utils/ipcutils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys-utils/ipcutils.c b/sys-utils/ipcutils.c
index 226a43111..305ddd700 100644
--- a/sys-utils/ipcutils.c
+++ b/sys-utils/ipcutils.c
@@ -18,6 +18,8 @@
 
 int ipc_msg_get_limits(struct ipc_limits *lim)
 {
+	memset(lim, 0, sizeof(*lim));
+
 	if (access(_PATH_PROC_IPC_MSGMNI, F_OK) == 0 &&
 	    access(_PATH_PROC_IPC_MSGMNB, F_OK) == 0 &&
 	    access(_PATH_PROC_IPC_MSGMAX, F_OK) == 0) {
-- 
2.27.0

