Skip to content

Commit f5bb961

Browse files
Add missing initialization of L3Range
Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent a2386ad commit f5bb961

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared/source/helpers/l3_range.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2021 Intel Corporation
2+
* Copyright (C) 2021-2022 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -72,7 +72,7 @@ struct L3Range {
7272
}
7373

7474
static L3Range fromAddressSize(uint64_t address, uint64_t size) {
75-
L3Range ret;
75+
L3Range ret{};
7676
ret.setAddress(address);
7777
ret.setMask(getMaskFromSize(size));
7878
return ret;
@@ -84,7 +84,7 @@ struct L3Range {
8484
return ret;
8585
}
8686
static L3Range fromAddressMask(uint64_t address, uint64_t mask) {
87-
L3Range ret;
87+
L3Range ret{};
8888
ret.setAddress(address);
8989
ret.setMask(mask);
9090
return ret;

0 commit comments

Comments
 (0)