Fix another spurious warning.

gcc 13.1 thinks that `newsocket` can be used uninitialized, because it
doesn't know that a call to `Com_Error()` is fatal.
This commit is contained in:
Yamagi 2023-07-01 17:52:36 +02:00
parent cb317f2cd3
commit f6361740f5

View file

@ -812,7 +812,8 @@ int
NET_Socket(char *net_interface, int port, netsrc_t type, int family)
{
char Buf[BUFSIZ], *Host, *Service;
int newsocket, Error;
int newsocket = 0;
int Error = 0;
struct sockaddr_storage ss;
struct addrinfo hints, *res, *ai;
qboolean _true = true;