mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
parser: fix rlimit missing initializer warning
When compiling the parser, g++ currently emits warnings like so: profile.h: In constructor ‘Profile::Profile()’: profile.h:177:11: warning: missing initializer for member ‘aa_rlimits::limits’ [-Wmissing-field-initializers] rlimits = { 0 }; ^ This patch fixes the issue. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
parent
690f35f61c
commit
d3bc4e43a5
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ public:
|
|||
parent = NULL;
|
||||
|
||||
flags = { 0, 0, 0, 0};
|
||||
rlimits = { 0 };
|
||||
rlimits = {0, {}};
|
||||
|
||||
std::fill(exec_table, exec_table + AA_EXEC_COUNT, (char *)NULL);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue