From: Thomas Heller Date: Tue, 6 Jun 2006 11:54:32 +0000 (+0000) Subject: Damn - the sentinel was missing. And fix another silly mistake. X-Git-Tag: v2.5b1~231 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07347d6efc84f06e65c0e55b8906a8e6579bfc4a;p=python Damn - the sentinel was missing. And fix another silly mistake. --- diff --git a/Modules/_ctypes/cfield.c b/Modules/_ctypes/cfield.c index 17711c2b6b..ae0290f477 100644 --- a/Modules/_ctypes/cfield.c +++ b/Modules/_ctypes/cfield.c @@ -229,7 +229,8 @@ CField_get_size(PyObject *self, void *data) static PyGetSetDef CField_getset[] = { { "offset", CField_get_offset, NULL, "offset in bytes of this field" }, - { "size", CField_get_offset, NULL, "size in bytes of this field" }, + { "size", CField_get_size, NULL, "size in bytes of this field" }, + { NULL, NULL, NULL, NULL }, }; static int