From 552d9d9f7a66b01d8287dcf19e3fd5eeb671127f Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Tue, 6 Aug 2024 13:02:34 -0700 Subject: [PATCH] Explicitly initialize component in test_walk_one This removes the assumption that the stack is zeroed and silences the corresponding compiler warning Signed-off-by: Ryan Lee --- libraries/libapparmor/src/tst_features.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libapparmor/src/tst_features.c b/libraries/libapparmor/src/tst_features.c index 036fc9d4a..9d60aa68c 100644 --- a/libraries/libapparmor/src/tst_features.c +++ b/libraries/libapparmor/src/tst_features.c @@ -135,7 +135,7 @@ static int do_test_walk_one(const char **str, const struct component *component, static int test_walk_one(void) { - struct component c; + struct component c = (struct component) { NULL, 0 }; const char *str; int rc = 0;