mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Backport rev 55452:
Whoops, need to pay attention to those test failures. Move the clear to *before* the first use, not after.
This commit is contained in:
parent
f86ae691d3
commit
73bf1018d6
1 changed files with 1 additions and 1 deletions
|
@ -1706,6 +1706,7 @@ DB_get_both(DBObject* self, PyObject* args, PyObject* kwargs)
|
|||
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 @@ DB_get_both(DBObject* self, PyObject* args, PyObject* kwargs)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
CLEAR_DBT(data);
|
||||
flags |= DB_GET_BOTH;
|
||||
|
||||
if (CHECK_DBFLAG(self, DB_THREAD)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue