From: Yu Watanabe Date: Tue, 22 Feb 2022 11:23:58 +0000 (+0900) Subject: test-oomd-util: fix conditional jump on uninitialised value X-Git-Tag: v251-rc1~241^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F22592%2Fhead;p=thirdparty%2Fsystemd.git test-oomd-util: fix conditional jump on uninitialised value Fixes #22577. --- diff --git a/src/oom/test-oomd-util.c b/src/oom/test-oomd-util.c index 23ce5dc0b6b..f0283677f7c 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);