mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Must terminate the Pickler_members[] and Pickler_getsets with NULL.
This commit is contained in:
parent
b85a8b7bc7
commit
3eb46f3a5d
1 changed files with 3 additions and 1 deletions
|
@ -2461,6 +2461,7 @@ Pickler_get_error(Picklerobject *p)
|
|||
static PyMemberDef Pickler_members[] = {
|
||||
{"binary", T_INT, offsetof(Picklerobject, bin)},
|
||||
{"fast", T_INT, offsetof(Picklerobject, fast)},
|
||||
{NULL}
|
||||
};
|
||||
|
||||
static PyGetSetDef Pickler_getsets[] = {
|
||||
|
@ -2468,7 +2469,8 @@ static PyGetSetDef Pickler_getsets[] = {
|
|||
(setter)Pickler_set_pers_func},
|
||||
{"inst_persistent_id", NULL, (setter)Pickler_set_inst_pers_func},
|
||||
{"memo", (getter)Pickler_get_memo, (setter)Pickler_set_memo},
|
||||
{"PicklingError", (getter)Pickler_get_error, NULL}
|
||||
{"PicklingError", (getter)Pickler_get_error, NULL},
|
||||
{NULL}
|
||||
};
|
||||
|
||||
static char Picklertype__doc__[] =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue