bpo-33021: Fix GCC 7 warning (-Wmaybe-uninitialized) in mmapmodule.c (#6117)
This commit is contained in:
parent
74f56878cd
commit
d6e1404661
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue