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