comment out corrupting code
This commit is contained in:
parent
cc525b2397
commit
21413c0fe6
|
@ -31,8 +31,10 @@ bool zmDbConnected = false;
|
|||
bool zmDbConnect() {
|
||||
// For some reason having these lines causes memory corruption and crashing on newer debian/ubuntu
|
||||
// But they really need to be here in order to prevent a double open of mysql
|
||||
if ( zmDbConnected )
|
||||
return true;
|
||||
//if ( zmDbConnected ) {
|
||||
//Warning("Calling zmDbConnect when already connected");
|
||||
//return true;
|
||||
//}
|
||||
|
||||
if ( !mysql_init(&dbconn) ) {
|
||||
Error("Can't initialise database connection: %s", mysql_error(&dbconn));
|
||||
|
|
Loading…
Reference in New Issue