diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-05-19 04:34:55 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-05-19 04:34:55 (GMT) |
commit | 4868ef8832db90b7c1454320120ab2b770fcee56 (patch) | |
tree | 251e2dbca6d2dddd4ecc9f014a75ed27c98a43d7 /Modules/_bsddb.c | |
parent | 59f58aaeed2d1b4062c460ad7f7f5069d4f7572c (diff) | |
download | cpython-4868ef8832db90b7c1454320120ab2b770fcee56.zip cpython-4868ef8832db90b7c1454320120ab2b770fcee56.tar.gz cpython-4868ef8832db90b7c1454320120ab2b770fcee56.tar.bz2 |
Whoops, need to pay attention to those test failures.
Move the clear to *before* the first use, not after.
Diffstat (limited to 'Modules/_bsddb.c')
-rw-r--r-- | Modules/_bsddb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index cc99926..34604ed 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -1724,6 +1724,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) ) { @@ -1731,7 +1732,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)) { |