]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
audit: tame initialization warning len_abuf in audit_log_execve_info
authorRichard Guy Briggs <rgb@redhat.com>
Thu, 10 Nov 2016 06:39:49 +0000 (01:39 -0500)
committerPaul Moore <paul@paul-moore.com>
Mon, 14 Nov 2016 20:18:48 +0000 (15:18 -0500)
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>
kernel/auditsc.c

index 5abf1dc1f91c578ccea84478c1f7fe53cde27afd..8c434318ec8d69a711de8ca747597d4accde9789 100644 (file)
@@ -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;