[Python-checkins] r58421 - python/trunk/Modules/_bsddb.c

neal.norwitz python-checkins at python.org
Fri Oct 12 05:01:55 CEST 2007


Author: neal.norwitz
Date: Fri Oct 12 05:01:54 2007
New Revision: 58421

Modified:
   python/trunk/Modules/_bsddb.c
Log:
Get rid of compiler warning about retval being used (returned) without
being initialized.  (gcc warning and Coverity 202)



Modified: python/trunk/Modules/_bsddb.c
==============================================================================
--- python/trunk/Modules/_bsddb.c	(original)
+++ python/trunk/Modules/_bsddb.c	Fri Oct 12 05:01:54 2007
@@ -4765,7 +4765,7 @@
 {
     int err;
     DBT key;
-    PyObject *retval;
+    PyObject *retval = NULL;
     key.flags = DB_DBT_MALLOC;
     CHECK_SEQUENCE_NOT_CLOSED(self)
     MYDB_BEGIN_ALLOW_THREADS


More information about the Python-checkins mailing list