[Python-checkins] r55454 - python/branches/release25-maint/Modules/_bsddb.c
neal.norwitz
python-checkins at python.org
Sat May 19 06:37:37 CEST 2007
Author: neal.norwitz
Date: Sat May 19 06:37:31 2007
New Revision: 55454
Modified:
python/branches/release25-maint/Modules/_bsddb.c
Log:
Backport rev 55452:
Whoops, need to pay attention to those test failures.
Move the clear to *before* the first use, not after.
Modified: python/branches/release25-maint/Modules/_bsddb.c
==============================================================================
--- python/branches/release25-maint/Modules/_bsddb.c (original)
+++ python/branches/release25-maint/Modules/_bsddb.c Sat May 19 06:37:31 2007
@@ -1706,6 +1706,7 @@
CHECK_DB_NOT_CLOSED(self);
if (!make_key_dbt(self, keyobj, &key, NULL))
return NULL;
+ CLEAR_DBT(data);
if ( !make_dbt(dataobj, &data) ||
!checkTxnObj(txnobj, &txn) )
{
@@ -1713,7 +1714,6 @@
return NULL;
}
- CLEAR_DBT(data);
flags |= DB_GET_BOTH;
if (CHECK_DBFLAG(self, DB_THREAD)) {
More information about the Python-checkins
mailing list