Skip to content
Commit e13f91e3 authored by Eric Paris's avatar Eric Paris
Browse files

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: default avatarEric Paris <eparis@redhat.com>
parent 64fbff9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment