Fix uninitialized variable peer_id

Reported by GCC

```
minetest/src/server.cpp:996:42: warning: ‘peer_id’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   errorstream << "ProcessData: peer=" << peer_id << e.what() << std::endl;
```
master
Loïc Blot 2018-12-04 12:39:10 +01:00
parent 6f426056f1
commit 39ea1cd428
1 changed files with 1 additions and 1 deletions

View File

@ -980,7 +980,7 @@ void Server::AsyncRunStep(bool initial_step)
void Server::Receive() void Server::Receive()
{ {
session_t peer_id; session_t peer_id = 0;
try { try {
NetworkPacket pkt; NetworkPacket pkt;
m_con->Receive(&pkt); m_con->Receive(&pkt);