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,
|
virReportSystemError(errno,
|
||||||
_("Failed to opendir path '%s'"),
|
_("Failed to opendir path '%s'"),
|
||||||
prefix);
|
prefix);
|
||||||
goto cleanup;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (virDirRead(dir, &entry, prefix) > 0) {
|
while (virDirRead(dir, &entry, prefix) > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user