Merge pull request #1177 from LudwigOrtmann/issue-1118

native: initialize maybe uninitialized variable
This commit is contained in:
René Kijewski 2014-05-15 14:56:37 +02:00
commit a68f4f2d75

View File

@ -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;
} }