mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-17 22:51:30 +00:00
Merge pull request #81 from vexyl/master
Fix for segfault in Database::CheckStatus() when using MariaDB.
This commit is contained in:
commit
bf77bc47d1
@ -304,7 +304,11 @@ int16 Database::CheckStatus(uint32 account_id)
|
|||||||
|
|
||||||
int16 status = atoi(row[0]);
|
int16 status = atoi(row[0]);
|
||||||
|
|
||||||
int32 suspendeduntil = atoi(row[1]);
|
int32 suspendeduntil = 0;
|
||||||
|
// MariaDB initalizes with NULL if unix_timestamp() is out of range
|
||||||
|
if (row[1] != NULL) {
|
||||||
|
suspendeduntil = atoi(row[1]);
|
||||||
|
}
|
||||||
|
|
||||||
int32 current = atoi(row[2]);
|
int32 current = atoi(row[2]);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user