Skip to content
Snippets Groups Projects
Commit d7b3d21b authored by Ludwig Knüpfer's avatar Ludwig Knüpfer
Browse files

native: initialize maybe uninitialized variable

fixes #1118
parent ec974014
Branches
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ void *get_in_addr(struct sockaddr *sa) ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment