mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
vbox: remove unreachable error in virVBoxSnapshotConfLoadVboxFile
Both callers in the VirtualBox driver error out if the path can't be fetched via VirtualBox APIs and abort on conversion error from UTF-16 to UTF-8. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
parent
6c41f2e076
commit
d2a430f90a
@ -576,12 +576,6 @@ virVBoxSnapshotConfLoadVboxFile(const char *filePath,
|
||||
ssize_t searchResultSize = 0;
|
||||
char *currentSnapshotAttribute = NULL;
|
||||
|
||||
if (filePath == NULL) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("Filepath is Null"));
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
machineDescription = g_new0(virVBoxSnapshotConfMachine, 1);
|
||||
|
||||
xml = virXMLParse(filePath, NULL, NULL, NULL, &xPathContext, NULL, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user