diff Modules/_ctypes/cfield.c @ 39097:aedb85ee4fec legacy-trunk

proto was dereffed above and is known to be good. No need for X. Reported by Klocwork, #39.
author Neal Norwitz <nnorwitz@gmail.com>
date Sun, 16 Jul 2006 02:05:35 +0000
parents 35c4fda47dfb
children 9a1288d8200f
line wrap: on
line diff
--- a/Modules/_ctypes/cfield.c	Sun Jul 16 02:02:57 2006 +0000
+++ b/Modules/_ctypes/cfield.c	Sun Jul 16 02:05:35 2006 +0000
@@ -124,7 +124,7 @@
 	self->getfunc = getfunc;
 	self->index = index;
 
-	Py_XINCREF(proto);
+	Py_INCREF(proto);
 	self->proto = proto;
 
 	switch (fieldtype) {