summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2016-03-29 14:02:57 +0200
committerKarel Zak <kzak@redhat.com>2016-03-29 14:02:57 +0200
commit60ee341ba9e519c3902fcc180ee79bdd564a3f2c (patch)
treea02fe91cd9a1d2937a306d069e67f67a12773fd1
parentcf5828599afe169f928e0a738ebee19f90384b20 (diff)
downloadutil-linux-60ee341ba9e519c3902fcc180ee79bdd564a3f2c.tar.gz
ipcs: make static analyzer happy [clang analyze]
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--sys-utils/ipcutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/ipcutils.c b/sys-utils/ipcutils.c
index 349e8550e..3c0fba3e0 100644
--- a/sys-utils/ipcutils.c
+++ b/sys-utils/ipcutils.c
@@ -54,7 +54,7 @@ int ipc_sem_get_limits(struct ipc_limits *lim)
}
if (rc != 4) {
- struct seminfo seminfo;
+ struct seminfo seminfo = { .semmni = 0 };
union semun arg = { .array = (ushort *) &seminfo };
if (semctl(0, 0, IPC_INFO, arg) < 0)