audit: remove redundant NULL assignment

virVasprintf sets the output to NULL on failure.
This commit is contained in:
Ján Tomko 2014-09-18 11:59:38 +02:00
parent c1480871bb
commit 25d454803f

View File

@ -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) {