Fixed some awkward coding reported by Steve Grubb of Redhat.
Fixed some awkward coding reported by Steve Grubb of Redhat.

Move the alloc of space for an event log entry to after checks on the
param list for the function.

Signed-off-by: Kent Yoder <a62f2225bf70bfaccbc7f1ef2a397836717377de@linux.vnet.ibm.com>

Distrotech/trousers,Distrotech/trousers,emilcondrea/trousers,emilcondrea/trousers,Distrotech/trousers,emilcondrea/trousers