1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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
This commit is contained in:
Alexandre Abadie 2019-10-28 16:35:18 +01:00
parent e075d97697
commit 2b0b591c85
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

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