]>
Commit | Line | Data |
---|---|---|
134b3e1f JB |
1 | Avoid build failure with -Werror=maybe-uninitialized |
2 | --- libipt-2.0.1/libipt/test/src/ptunit-msec_cache.c.orig 2019-08-13 10:39:44.000000000 +0200 | |
3 | +++ libipt-2.0.1/libipt/test/src/ptunit-msec_cache.c 2021-11-17 19:14:27.713062249 +0100 | |
4 | @@ -296,7 +296,7 @@ static struct ptunit_result read(struct | |
5 | static struct ptunit_result fill_nomap(struct test_fixture *tfix) | |
6 | { | |
7 | const struct pt_mapped_section *msec; | |
8 | - struct pt_asid asid; | |
9 | + struct pt_asid asid = {0, }; | |
10 | struct pt_section *section; | |
11 | int status; | |
12 | ||
13 | @@ -320,7 +320,7 @@ static struct ptunit_result fill(struct | |
14 | { | |
15 | const struct pt_mapped_section *msec; | |
16 | struct pt_section *section; | |
17 | - struct pt_asid asid; | |
18 | + struct pt_asid asid = {0, }; | |
19 | int status; | |
20 | ||
21 | status = pt_msec_cache_fill(&tfix->mcache, &msec, &tfix->image, &asid, |