提交 f37627ee 编写于 作者: J Jiri Denemark

util: Avoid calling closedir(NULL)

Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
上级 7296e896
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册