Do not call closedir with NULL argument
Only three other callers possibly call closedir on a NULL argument. Even though these probably won't be used on FreeBSD where this crashes, let's be nice and only call closedir on an actual directory stream.
Showing
想要评论请 注册 或 登录