mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
need to reset errno before calling readdir
This commit is contained in:
parent
704226510f
commit
9778ec7a19
@ -1251,6 +1251,7 @@ scan_directory(vector_string &contents) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
errno = 0;
|
||||
struct dirent *d;
|
||||
d = readdir(root);
|
||||
while (d != (struct dirent *)NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user