1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

native: initialize maybe uninitialized variable

fixes #1118
This commit is contained in:
Ludwig Ortmann 2014-05-15 08:54:01 +02:00
parent ec9740142b
commit d7b3d21bfe

View File

@ -92,7 +92,7 @@ void *get_in_addr(struct sockaddr *sa)
int init_tcp_socket(char *tcpport)
{
struct addrinfo hints, *info, *p;
int i, s;
int i, s = -1;
if (tcpport == NULL) {
tcpport = UART_TCPPORT;
}