[Zope-Checkins] CVS: Products/DCOracle2/src - dco2.c:1.124

Matthew T. Kromer matt@zope.com
Thu, 21 Nov 2002 10:42:14 -0500


Update of /cvs-repository/Products/DCOracle2/src
In directory cvs.zope.org:/tmp/cvs-serv31034/src

Modified Files:
	dco2.c 
Log Message:
Py_INCREF the second operand to OracleDate_coerce when successful coercion
occurs (since on success, the caller Py_DECREFs it).


=== Products/DCOracle2/src/dco2.c 1.123 => 1.124 ===
--- Products/DCOracle2/src/dco2.c:1.123	Thu Oct 24 11:16:44 2002
+++ Products/DCOracle2/src/dco2.c	Thu Nov 21 10:42:13 2002
@@ -5925,6 +5925,8 @@
 		rc =  0;
 	}
 
+	if (rc == 0) Py_INCREF(*o2);
+
 	TRACE(T_EXIT,("sR", "OracleDate_coerce", rc));
 
 	return rc;	/* Nope */