fix readdir

This commit is contained in:
Sebastian Messmer 2014-11-12 15:41:26 +01:00
parent 3b2de412c8
commit bedf079af2

View File

@ -24,6 +24,8 @@ CryOpenDir::~CryOpenDir() {
unique_ptr<vector<string>> CryOpenDir::readdir() const {
::rewinddir(_dir);
// Set errno=0 so we can detect whether it changed later
errno = 0;
auto result = make_unique<vector<string>>();