mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
util: Avoid calling closedir(NULL)
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
7296e896c9
commit
f37627ee72
@ -1780,7 +1780,7 @@ virFindSCSIHostByPCI(const char *sysfs_prefix,
|
||||
virReportSystemError(errno,
|
||||
_("Failed to opendir path '%s'"),
|
||||
prefix);
|
||||
goto cleanup;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
while (virDirRead(dir, &entry, prefix) > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user