Commit f6817e67 authored by Georg Brandl's avatar Georg Brandl

Clear errno before calling opendir() and readdir().

parent 0ddc2834
......@@ -1845,6 +1845,7 @@ posix_listdir(PyObject *self, PyObject *args)
struct dirent *ep;
int arg_is_unicode = 1;
errno = 0;
if (!PyArg_ParseTuple(args, "U:listdir", &v)) {
arg_is_unicode = 0;
PyErr_Clear();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment