From a464c196640d9fede553e413935f9dd3133ba59e Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Tue, 13 Nov 2012 09:48:42 +0000 Subject: [PATCH] properly initialize the doLog variable for ssqlite3, plus rename it (it is not static) git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2889 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- pdns/ssqlite3.cc | 5 +++-- pdns/ssqlite3.hh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pdns/ssqlite3.cc b/pdns/ssqlite3.cc index 5598b044a..b9041ffc4 100644 --- a/pdns/ssqlite3.cc +++ b/pdns/ssqlite3.cc @@ -31,12 +31,13 @@ SSQLite3::SSQLite3( const std::string & database, bool creat ) if ( sqlite3_open( database.c_str(), &m_pDB)!=SQLITE_OK ) throw sPerrorException( "Could not connect to the SQLite database '" + database + "'" ); m_pStmt = 0; + m_dolog = 0; sqlite3_busy_handler(m_pDB, busyHandler, 0); } void SSQLite3::setLog(bool state) { - s_dolog=state; + m_dolog=state; } // Destructor. @@ -86,7 +87,7 @@ int SSQLite3::doQuery( const std::string & query ) { const char *pTail; - if(s_dolog) + if(m_dolog) L<