提交 b914530d 编写于 作者: J Ján Tomko

Do not save errno in virUSBDeviceSearch

The virUSBDeviceFind* callers do not check errno after calling
this function.
上级 cb049b9a
......@@ -202,11 +202,8 @@ virUSBDeviceSearch(unsigned int vendor,
ret = list;
cleanup:
if (dir) {
int saved_errno = errno;
if (dir)
closedir(dir);
errno = saved_errno;
}
if (!ret)
virObjectUnref(list);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册