summaryrefslogtreecommitdiff
path: root/src/oom
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-02-22 20:23:58 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-02-22 20:24:22 +0900
commita6d6a51d83fae32212e1780e71b16517a4df9a57 (patch)
treeb747dccafb3fc7330b01a733a527f45276fdaf45 /src/oom
parentd9fe39b24a0a5464c83c7a754752ca21dbd2578f (diff)
downloadsystemd-a6d6a51d83fae32212e1780e71b16517a4df9a57.tar.gz
test-oomd-util: fix conditional jump on uninitialised value
Fixes #22577.
Diffstat (limited to 'src/oom')
-rw-r--r--src/oom/test-oomd-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oom/test-oomd-util.c b/src/oom/test-oomd-util.c
index 23ce5dc0b6..f0283677f7 100644
--- a/src/oom/test-oomd-util.c
+++ b/src/oom/test-oomd-util.c
@@ -283,7 +283,7 @@ static void test_oomd_system_context_acquire(void) {
static void test_oomd_pressure_above(void) {
_cleanup_hashmap_free_ Hashmap *h1 = NULL, *h2 = NULL;
_cleanup_set_free_ Set *t1 = NULL, *t2 = NULL, *t3 = NULL;
- OomdCGroupContext ctx[2], *c;
+ OomdCGroupContext ctx[2] = {}, *c;
loadavg_t threshold;
assert_se(store_loadavg_fixed_point(80, 0, &threshold) == 0);