Skip to content

Commit ea85b30

Browse files
Update Modules/mmapmodule.c
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 0ee3c86 commit ea85b30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/mmapmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,8 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
17231723
DWORD dwErr = 0;
17241724
int fileno;
17251725
HANDLE fh = INVALID_HANDLE_VALUE;
1726-
int access = (access_mode)ACCESS_DEFAULT, trackfd = 1;
1726+
int access = (access_mode)ACCESS_DEFAULT;
1727+
int trackfd = 1;
17271728
DWORD flProtect, dwDesiredAccess;
17281729
static char *keywords[] = { "fileno", "length",
17291730
"tagname",

0 commit comments

Comments
 (0)