]> git.baikalelectronics.ru Git - kernel.git/commit
audit: use memset instead of trying to initialize field by field
authorEric Paris <eparis@redhat.com>
Tue, 5 Nov 2013 15:48:02 +0000 (10:48 -0500)
committerEric Paris <eparis@redhat.com>
Tue, 5 Nov 2013 16:08:35 +0000 (11:08 -0500)
commit4233d2277e9d6bbee66cca5fc0927cdf58111b67
tree71c58b8eaa95bcffb554052794f3c99e767104da
parentbfa37aaea1e30e2772336a581b27ad77c8ed3291
audit: use memset instead of trying to initialize field by field

We currently are setting fields to 0 to initialize the structure
declared on the stack.  This is a bad idea as if the structure has holes
or unpacked space these will not be initialized.  Just use memset.  This
is not a performance critical section of code.

Signed-off-by: Eric Paris <eparis@redhat.com>
kernel/audit.c