aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Database/Database.cpp
diff options
context:
space:
mode:
authorXanadu <none@none>2010-05-29 03:16:39 +0200
committerXanadu <none@none>2010-05-29 03:16:39 +0200
commitd104f19469f9a63636f16e0d0765cd6798bccf4b (patch)
tree200c4bb985b503d082a889722bafc3733776e831 /src/shared/Database/Database.cpp
parentde97bd4f00df0265d1c352611d40d82ffacf45d4 (diff)
*Properly initialize members to prevent DB logging before the DB is started. Fixes a rarely seen startup crash.
*Code cleanup. --HG-- branch : trunk
Diffstat (limited to 'src/shared/Database/Database.cpp')
-rw-r--r--src/shared/Database/Database.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/Database/Database.cpp b/src/shared/Database/Database.cpp
index 73924b485ce..379388d7997 100644
--- a/src/shared/Database/Database.cpp
+++ b/src/shared/Database/Database.cpp
@@ -39,7 +39,7 @@
size_t Database::db_count = 0;
-Database::Database()
+Database::Database() : mMysql(NULL)
{
// before first connection
if (db_count++ == 0)