summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-10-16 17:10:49 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-10-16 17:10:49 (GMT)
commit3eb46f3a5d0e011e4c56cd90ac377dee479e3a4a (patch)
tree6e0620769cf99daa5b87149593fdaf138a15a4bb /Modules
parentb85a8b7bc79179c97ad1e7f876f885166f855cc8 (diff)
downloadcpython-3eb46f3a5d0e011e4c56cd90ac377dee479e3a4a.zip
cpython-3eb46f3a5d0e011e4c56cd90ac377dee479e3a4a.tar.gz
cpython-3eb46f3a5d0e011e4c56cd90ac377dee479e3a4a.tar.bz2
Must terminate the Pickler_members[] and Pickler_getsets with NULL.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/cPickle.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index 3a98259..b2392f9 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -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__[] =