提交 aa88882c 编写于 作者: F Fabiano Fidêncio

vbox: Don't check the output of virGetUserCacheDirectory()

virGetUserCacheDirectory() *never* *ever* returns NULL, making the
checks for it completely unnecessary.
Signed-off-by: NFabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 e09d7d08
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册