diff options
author | Zackery Spytz <zspytz@gmail.com> | 2019-06-21 15:31:59 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@python.org> | 2019-06-21 15:31:59 (GMT) |
commit | 08286d52b29de604a4b187bf1f0d4209e39c926c (patch) | |
tree | 36af2d00c327f0482135deac89d724481ce2ee76 /Modules | |
parent | 08970cb03c61f62f4f69e7769d0075fa66bb86aa (diff) | |
download | cpython-08286d52b29de604a4b187bf1f0d4209e39c926c.zip cpython-08286d52b29de604a4b187bf1f0d4209e39c926c.tar.gz cpython-08286d52b29de604a4b187bf1f0d4209e39c926c.tar.bz2 |
bpo-37316: mmap.mmap() passes the wrong variable to PySys_Audit() (GH-14152)
Also, add a missing call to va_end() in PySys_Audit().
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/mmapmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 755f166..9e3414f 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -1154,7 +1154,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict) } if (PySys_Audit("mmap.__new__", "ini" _Py_PARSE_OFF_T, - fileno, map_size, access, offset) < 0) { + fd, map_size, access, offset) < 0) { return NULL; } |