From 2b0b591c85f96d94eea6f8fff36a841db2213d2d Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Mon, 28 Oct 2019 16:35:18 +0100 Subject: [PATCH] sys/net/sock_util: fix dead initialization warning This was reported by LLVM scan build. The value assigned at initialization is never used, so could be removed --- sys/net/sock/sock_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/sock/sock_util.c b/sys/net/sock/sock_util.c index 4045bc055b..29cc6350d2 100644 --- a/sys/net/sock/sock_util.c +++ b/sys/net/sock/sock_util.c @@ -151,7 +151,7 @@ int sock_udp_str2ep(sock_udp_ep_t *ep_out, const char *str) { unsigned brackets_flag; char *hoststart = (char*)str; - char *hostend = hoststart; + char *hostend; char hostbuf[SOCK_HOSTPORT_MAXLEN];