diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2016-11-10 01:39:49 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2016-11-14 15:18:48 -0500 |
commit | 8443075eacb51df8539916c4170d2fdfe7c81433 (patch) | |
tree | 83d18d719f772ea91ceb4f6064e99bac32757f09 /kernel/auditsc.c | |
parent | b4eb4f7f1a979552e0e9f54d0cef4abd0140beef (diff) |
audit: tame initialization warning len_abuf in audit_log_execve_info
Tame initialization warning of len_abuf in audit_log_execve_info even
though there isn't presently a bug introduced by commit 43761473c254
("audit: fix a double fetch in audit_log_single_execve_arg()"). Using
UNINITIALIZED_VAR instead may mask future bugs.
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r-- | kernel/auditsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 5abf1dc1f91c..8c434318ec8d 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -1000,7 +1000,7 @@ static void audit_log_execve_info(struct audit_context *context, long len_rem; long len_full; long len_buf; - long len_abuf; + long len_abuf = 0; long len_tmp; bool require_data; bool encode; |