summaryrefslogtreecommitdiff
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2016-11-10 09:39:49 +0300
committerPaul Moore <paul@paul-moore.com>2016-11-14 23:18:48 +0300
commit8443075eacb51df8539916c4170d2fdfe7c81433 (patch)
tree83d18d719f772ea91ceb4f6064e99bac32757f09 /kernel/auditsc.c
parentb4eb4f7f1a979552e0e9f54d0cef4abd0140beef (diff)
downloadlinux-8443075eacb51df8539916c4170d2fdfe7c81433.tar.xz
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.c2
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;