]> granicus.if.org Git - python/commitdiff
Get rid of compiler warning about retval being used (returned) without
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 12 Oct 2007 03:01:54 +0000 (03:01 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 12 Oct 2007 03:01:54 +0000 (03:01 +0000)
being initialized.  (gcc warning and Coverity 202)

Modules/_bsddb.c

index bc70cc3b0f5eb8de34d5b13ccbcd156b3e37ce28..11e02016142abac578811cef0319e5de2f0952a2 100644 (file)
@@ -4765,7 +4765,7 @@ DBSequence_get_key(DBSequenceObject* self, PyObject* args)
 {
     int err;
     DBT key;
-    PyObject *retval;
+    PyObject *retval = NULL;
     key.flags = DB_DBT_MALLOC;
     CHECK_SEQUENCE_NOT_CLOSED(self)
     MYDB_BEGIN_ALLOW_THREADS