mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
libxlLoggerNew: virHashNew
cannot return NULL
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
3ae0c7715e
commit
ae06bc9cfe
@ -149,9 +149,7 @@ libxlLoggerNew(const char *logDir, virLogPriority minLevel)
|
||||
break;
|
||||
}
|
||||
logger.logDir = logDir;
|
||||
|
||||
if ((logger.files = virHashNew(libxlLoggerFileFree)) == NULL)
|
||||
return NULL;
|
||||
logger.files = virHashNew(libxlLoggerFileFree);
|
||||
|
||||
path = g_strdup_printf("%s/libxl-driver.log", logDir);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user