summaryrefslogtreecommitdiffstats
path: root/Modules/_bsddb.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-10-12 03:01:54 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-10-12 03:01:54 (GMT)
commit088beae1f2b99e4dea44fe3f6630f22f5f49b013 (patch)
treede60493fedf0dc5e420853a5d119e0c79c4b3e03 /Modules/_bsddb.c
parentc740d834eee532f15c758c41fba08974cd300f9e (diff)
downloadcpython-088beae1f2b99e4dea44fe3f6630f22f5f49b013.zip
cpython-088beae1f2b99e4dea44fe3f6630f22f5f49b013.tar.gz
cpython-088beae1f2b99e4dea44fe3f6630f22f5f49b013.tar.bz2
Get rid of compiler warning about retval being used (returned) without
being initialized. (gcc warning and Coverity 202)
Diffstat (limited to 'Modules/_bsddb.c')
-rw-r--r--Modules/_bsddb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
index bc70cc3..11e0201 100644
--- a/Modules/_bsddb.c
+++ b/Modules/_bsddb.c
@@ -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