mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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
|
#endif
|
||||||
|
|
||||||
va_start(args, fmt);
|
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");
|
VIR_WARN("Out of memory while formatting audit message");
|
||||||
str = NULL;
|
|
||||||
}
|
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
if (auditlog && str) {
|
if (auditlog && str) {
|
||||||
|
Loading…
Reference in New Issue
Block a user