diff options
-rw-r--r-- | src/login/account_txt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/login/account_txt.c b/src/login/account_txt.c index 23231d810..4b4e4b950 100644 --- a/src/login/account_txt.c +++ b/src/login/account_txt.c @@ -127,12 +127,14 @@ static bool account_db_txt_init(AccountDB* self) if( line[0] == '/' && line[1] == '/' ) continue; + int n = 0; if( sscanf(line, "%d%n", &v, &n) == 1 && (line[n] == '\n' || line[n] == '\r') ) {// format version definition version = v; continue; } + int n = 0; if( sscanf(line, "%d\t%%newid%%%n", &account_id, &n) == 1 && (line[n] == '\n' || line[n] == '\r') ) {// auto-increment if( account_id > db->next_account_id ) |