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

Merge pull request #12595 from aabadie/pr/net/sock_util_scan_build

sys/net/sock_util: fix dead initialization warning
This commit is contained in:
benpicco 2019-10-28 17:24:50 +01:00 committed by GitHub
commit 456982f595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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