[Zope-Checkins] CVS: ZODB3/ZODB - coptimizations.c:1.19

Jeremy Hylton jeremy@zope.com
Mon, 16 Sep 2002 23:42:59 -0400


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv3377

Modified Files:
	coptimizations.c 
Log Message:
get_class() should return NULL if class is not otherwise set.

Caught by Guido, but why not be my compiler?


=== ZODB3/ZODB/coptimizations.c 1.18 => 1.19 ===
--- ZODB3/ZODB/coptimizations.c:1.18	Mon Sep 16 19:50:39 2002
+++ ZODB3/ZODB/coptimizations.c	Mon Sep 16 23:42:58 2002
@@ -72,7 +72,7 @@
 static PyObject *
 get_class(PyObject *object)
 {
-    PyObject *class;
+    PyObject *class = NULL;
 
     if (!PyExtensionClass_Check(object)) {
 	if (PyExtensionInstance_Check(object)) {