mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
errno = 0;
|
||||||
struct dirent *d;
|
struct dirent *d;
|
||||||
d = readdir(root);
|
d = readdir(root);
|
||||||
while (d != (struct dirent *)NULL) {
|
while (d != (struct dirent *)NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user