Fixed crashing metaserver at first start

This commit is contained in:
Pali Rohár 2011-05-28 13:26:27 +02:00
parent f2e8a3b060
commit ab05394bc0

View file

@ -112,7 +112,8 @@ static sqlite3 *DB;
static int DBMaxIDCallback(void *password, int argc, char **argv, char **colname) static int DBMaxIDCallback(void *password, int argc, char **argv, char **colname)
{ {
Assert(argc == 1); Assert(argc == 1);
GameID = atoi(argv[0]); if (argv[0])
GameID = atoi(argv[0]);
return 0; return 0;
} }