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)
|
int init_tcp_socket(char *tcpport)
|
||||||
{
|
{
|
||||||
struct addrinfo hints, *info, *p;
|
struct addrinfo hints, *info, *p;
|
||||||
int i, s;
|
int i, s = -1;
|
||||||
if (tcpport == NULL) {
|
if (tcpport == NULL) {
|
||||||
tcpport = UART_TCPPORT;
|
tcpport = UART_TCPPORT;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user