mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
vbox: Don't check the output of virGetUserCacheDirectory()
virGetUserCacheDirectory() *never* *ever* returns NULL, making the checks for it completely unnecessary. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
e09d7d080d
commit
aa88882c41
@ -7374,9 +7374,8 @@ vboxDomainScreenshot(virDomainPtr dom,
|
||||
|
||||
if (privileged) {
|
||||
cacheDir = g_strdup_printf("%s/cache/libvirt", LOCALSTATEDIR);
|
||||
} else if (!(cacheDir = virGetUserCacheDirectory())) {
|
||||
VBOX_RELEASE(machine);
|
||||
return NULL;
|
||||
} else {
|
||||
cacheDir = virGetUserCacheDirectory();
|
||||
}
|
||||
|
||||
tmp = g_strdup_printf("%s/vbox.screendump.XXXXXX", cacheDir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user