mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
audit: remove redundant NULL assignment
virVasprintf sets the output to NULL on failure.
This commit is contained in:
parent
c1480871bb
commit
25d454803f
@ -99,10 +99,8 @@ void virAuditSend(virLogSourcePtr source,
|
||||
#endif
|
||||
|
||||
va_start(args, fmt);
|
||||
if (virVasprintf(&str, fmt, args) < 0) {
|
||||
if (virVasprintf(&str, fmt, args) < 0)
|
||||
VIR_WARN("Out of memory while formatting audit message");
|
||||
str = NULL;
|
||||
}
|
||||
va_end(args);
|
||||
|
||||
if (auditlog && str) {
|
||||
|
Loading…
Reference in New Issue
Block a user