diff options
author | Xanadu <none@none> | 2010-05-29 03:16:39 +0200 |
---|---|---|
committer | Xanadu <none@none> | 2010-05-29 03:16:39 +0200 |
commit | d104f19469f9a63636f16e0d0765cd6798bccf4b (patch) | |
tree | 200c4bb985b503d082a889722bafc3733776e831 /src/shared/Database/Database.cpp | |
parent | de97bd4f00df0265d1c352611d40d82ffacf45d4 (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.cpp | 2 |
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) |