Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a7fe03

Browse files
Add missing sentinel to PyCursesWindow_getsets
The PyCursesWindow_getsets array was introduced without sentinel in c3581ca21a57.
1 parent c64ae92 commit 2a7fe03

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/_cursesmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,8 @@ static PyGetSetDef PyCursesWindow_getsets[] = {
20562056
{"encoding",
20572057
(getter)PyCursesWindow_get_encoding,
20582058
(setter)PyCursesWindow_set_encoding,
2059-
"the typecode character used to create the array"}
2059+
"the typecode character used to create the array"},
2060+
{NULL, NULL, NULL, NULL } /* sentinel */
20602061
};
20612062

20622063
/* -------------------------------------------------------*/

0 commit comments

Comments
 (0)