summaryrefslogtreecommitdiffstats
path: root/Modules/mmapmodule.c
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2018-03-14 20:08:01 (GMT)
committerAntoine Pitrou <pitrou@free.fr>2018-03-14 20:08:01 (GMT)
commitd6e140466142018ddbb7541185348be2b833a2ce (patch)
tree3cf3100cd57a8414aabd4579ba831d784752e5b9 /Modules/mmapmodule.c
parent74f56878cdee18d485e4f8b485d55ce62e38f4c9 (diff)
downloadcpython-d6e140466142018ddbb7541185348be2b833a2ce.zip
cpython-d6e140466142018ddbb7541185348be2b833a2ce.tar.gz
cpython-d6e140466142018ddbb7541185348be2b833a2ce.tar.bz2
bpo-33021: Fix GCC 7 warning (-Wmaybe-uninitialized) in mmapmodule.c (#6117)
Diffstat (limited to 'Modules/mmapmodule.c')
-rw-r--r--Modules/mmapmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index 6abdc71..95d42d6 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -1050,7 +1050,7 @@ static PyObject *
new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
{
struct _Py_stat_struct status;
- int fstat_result;
+ int fstat_result = -1;
mmap_object *m_obj;
Py_ssize_t map_size;
off_t offset = 0;