[Python-checkins] CVS: python/dist/src/Modules cPickle.c,2.66,2.67
Jeremy Hylton
jhylton@users.sourceforge.net
Tue, 16 Oct 2001 10:10:51 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv9024
Modified Files:
cPickle.c
Log Message:
Must terminate the Pickler_members[] and Pickler_getsets with NULL.
Index: cPickle.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cPickle.c,v
retrieving revision 2.66
retrieving revision 2.67
diff -C2 -d -r2.66 -r2.67
*** cPickle.c 2001/10/15 21:37:58 2.66
--- cPickle.c 2001/10/16 17:10:49 2.67
***************
*** 2462,2465 ****
--- 2462,2466 ----
{"binary", T_INT, offsetof(Picklerobject, bin)},
{"fast", T_INT, offsetof(Picklerobject, fast)},
+ {NULL}
};
***************
*** 2469,2473 ****
{"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}
};
--- 2470,2475 ----
{"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},
! {NULL}
};