BIND 10 trac1359, updated. ff5154291678973eaa0483518302b74a62f0acba [1359] a bit more cleanup: declare/define variables closer to the point where they are used.
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Nov 16 08:26:47 UTC 2011
The branch, trac1359 has been updated
via ff5154291678973eaa0483518302b74a62f0acba (commit)
from c4c93896137dd936066cd1a714569468bf248451 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ff5154291678973eaa0483518302b74a62f0acba
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Wed Nov 16 00:26:32 2011 -0800
[1359] a bit more cleanup: declare/define variables closer to the point
where they are used.
-----------------------------------------------------------------------
Summary of changes:
src/lib/python/isc/log/log.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/log/log.cc b/src/lib/python/isc/log/log.cc
index b8ad716..8602db9 100644
--- a/src/lib/python/isc/log/log.cc
+++ b/src/lib/python/isc/log/log.cc
@@ -514,8 +514,6 @@ Logger_performOutput(Function function, PyObject* args, bool dbgLevel) {
}
// Extract the fixed arguments
- PyObjectContainer msgid_container(PySequence_GetItem(args, start - 1));
- string mid(objectToStr(msgid_container.get(), false));
long dbg(0);
if (dbgLevel) {
PyObjectContainer dbg_container(PySequence_GetItem(args, 0));
@@ -528,6 +526,8 @@ Logger_performOutput(Function function, PyObject* args, bool dbgLevel) {
// We create the logging message right now. If we fail to convert a
// parameter to string, at least the part that we already did will
// be output
+ PyObjectContainer msgid_container(PySequence_GetItem(args, start - 1));
+ const string mid(objectToStr(msgid_container.get(), false));
Logger::Formatter formatter(function(dbg, mid.c_str()));
// Now process the rest of parameters, convert each to string and put
More information about the bind10-changes
mailing list