[Zodb-checkins] CVS: Zope3/src/zope/interface -
_zope_interface_coptimizations.c:1.5
Jim Fulton
jim at zope.com
Mon Apr 5 15:43:59 EDT 2004
Update of /cvs-repository/Zope3/src/zope/interface
In directory cvs.zope.org:/tmp/cvs-serv13259/src/zope/interface
Modified Files:
_zope_interface_coptimizations.c
Log Message:
Fixed a bug that caused segfaults. Added a missing check for a null
return.
=== Zope3/src/zope/interface/_zope_interface_coptimizations.c 1.4 => 1.5 ===
--- Zope3/src/zope/interface/_zope_interface_coptimizations.c:1.4 Fri Mar 5 17:09:28 2004
+++ Zope3/src/zope/interface/_zope_interface_coptimizations.c Mon Apr 5 15:43:57 2004
@@ -309,6 +309,8 @@
PyObject *decl, *item;
decl = implementedBy(NULL, cls);
+ if (decl == NULL)
+ return NULL;
if (PyObject_TypeCheck(decl, &SpecType))
item = Spec_extends(decl, self);
More information about the Zodb-checkins
mailing list