mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00: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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user