mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #1177 from LudwigOrtmann/issue-1118
native: initialize maybe uninitialized variable
This commit is contained in:
commit
a68f4f2d75
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user