From d7b3d21bfe0efbe3dba449a1f42be174285ad1e0 Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Thu, 15 May 2014 08:54:01 +0200 Subject: [PATCH] native: initialize maybe uninitialized variable fixes #1118 --- boards/native/drivers/native-uart0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/native/drivers/native-uart0.c b/boards/native/drivers/native-uart0.c index 14e9bd64b1..8b0b8e1975 100644 --- a/boards/native/drivers/native-uart0.c +++ b/boards/native/drivers/native-uart0.c @@ -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; }