commit | 05e89b86d66cbd90b9c43ebe89f42dfcc6f558fe | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Tue Apr 11 07:04:06 2006 +0000 |
committer | Georg Brandl <georg@python.org> | Tue Apr 11 07:04:06 2006 +0000 |
tree | d957833408ebd1a22f4bf25872120ca5073be81c | |
parent | 377be11ee1fab015f4cc77975374f86cf436536e [diff] |
Clear errno before calling opendir() and readdir().
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 39765b2..a0a8d9a 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -1845,6 +1845,7 @@ struct dirent *ep; int arg_is_unicode = 1; + errno = 0; if (!PyArg_ParseTuple(args, "U:listdir", &v)) { arg_is_unicode = 0; PyErr_Clear();