mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
audit: remove redundant NULL assignment
virVasprintf sets the output to NULL on failure.
This commit is contained in:
+1
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user