summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-10-06 06:32:09 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-10-06 06:32:09 (GMT)
commit8f1cdc65ee9db0040d031f7da6284cc72d44c9ba (patch)
treecc4dcaaa974343f6367f3bd44582e6817a9a00c4 /Modules
parent3776836f675f3d52b21713a45460f09a03af15df (diff)
downloadcpython-8f1cdc65ee9db0040d031f7da6284cc72d44c9ba.zip
cpython-8f1cdc65ee9db0040d031f7da6284cc72d44c9ba.tar.gz
cpython-8f1cdc65ee9db0040d031f7da6284cc72d44c9ba.tar.bz2
ensure read size is initialized
Diffstat (limited to 'Modules')
-rw-r--r--Modules/mmapmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index e01de44..4eb9274 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -267,7 +267,7 @@ static PyObject *
mmap_read_method(mmap_object *self,
PyObject *args)
{
- Py_ssize_t num_bytes, remaining;
+ Py_ssize_t num_bytes = PY_SSIZE_T_MAX, remaining;
PyObject *result;
CHECK_VALID(NULL);