From: Neal Norwitz Date: Sat, 19 May 2007 04:34:55 +0000 (+0000) Subject: Whoops, need to pay attention to those test failures. X-Git-Tag: v2.6a1~1726 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4868ef8832db90b7c1454320120ab2b770fcee56;p=thirdparty%2FPython%2Fcpython.git Whoops, need to pay attention to those test failures. Move the clear to *before* the first use, not after. --- diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index cc99926214eb..34604ed09f90 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)) {