commit | 088beae1f2b99e4dea44fe3f6630f22f5f49b013 | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Fri Oct 12 03:01:54 2007 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Fri Oct 12 03:01:54 2007 +0000 |
tree | de60493fedf0dc5e420853a5d119e0c79c4b3e03 | |
parent | c740d834eee532f15c758c41fba08974cd300f9e [diff] |
Get rid of compiler warning about retval being used (returned) without being initialized. (gcc warning and Coverity 202)
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 @@ { int err; DBT key; - PyObject *retval; + PyObject *retval = NULL; key.flags = DB_DBT_MALLOC; CHECK_SEQUENCE_NOT_CLOSED(self) MYDB_BEGIN_ALLOW_THREADS