mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Merge Explicitly initialize component in test_walk_one
This removes the assumption that the stack is zeroed and silences the corresponding compiler warning MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1292 Approved-by: Georgia Garcia <georgia.garcia@canonical.com> Merged-by: Georgia Garcia <georgia.garcia@canonical.com>
This commit is contained in:
commit
7715b79e3f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue