[Python-checkins] r45263 - python/branches/release24-maint/Modules/posixmodule.c
georg.brandl
python-checkins at python.org
Tue Apr 11 09:04:09 CEST 2006
Author: georg.brandl
Date: Tue Apr 11 09:04:09 2006
New Revision: 45263
Modified:
python/branches/release24-maint/Modules/posixmodule.c
Log:
Clear errno before calling opendir() and readdir().
(backport from rev. 45262)
Modified: python/branches/release24-maint/Modules/posixmodule.c
==============================================================================
--- python/branches/release24-maint/Modules/posixmodule.c (original)
+++ python/branches/release24-maint/Modules/posixmodule.c Tue Apr 11 09:04:09 2006
@@ -1648,6 +1648,7 @@
struct dirent *ep;
int arg_is_unicode = 1;
+ errno = 0;
if (!PyArg_ParseTuple(args, "U:listdir", &v)) {
arg_is_unicode = 0;
PyErr_Clear();
More information about the Python-checkins
mailing list