starting IDs from 1 instead of 0

atoi returns 0 in failure, meaning all typos would send PMs to first user
This commit is contained in:
Václav Šmejkal 2024-08-28 13:38:17 +02:00
parent 963e75da51
commit 7647be3daf
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -426,7 +426,7 @@ void send_welcome_packet(int connection)
unsigned long get_latest_id()
{
unsigned long returning = 0;
unsigned long returning = 1;
why2_node_t *buffer = connection_list.head;
connection_node_t value_buffer;