bpo-33021: Fix GCC 7 warning (-Wmaybe-uninitialized) in mmapmodule.c (#6117)

This commit is contained in:
Zackery Spytz 2018-03-14 14:08:01 -06:00 committed by Antoine Pitrou
parent 74f56878cd
commit d6e1404661
1 changed files with 1 additions and 1 deletions

View File

@ -1050,7 +1050,7 @@ static PyObject *
new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict) new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
{ {
struct _Py_stat_struct status; struct _Py_stat_struct status;
int fstat_result; int fstat_result = -1;
mmap_object *m_obj; mmap_object *m_obj;
Py_ssize_t map_size; Py_ssize_t map_size;
off_t offset = 0; off_t offset = 0;