mirror of
https://github.com/janet-lang/janet
synced 2024-12-27 00:40:26 +00:00
Had an extra plen definition, removed.
This commit is contained in:
parent
077bf5ebae
commit
bf2928805e
@ -744,7 +744,6 @@ static Janet janet_so_getname(const struct sockaddr_storage *ss, socklen_t slen)
|
||||
if (slen > offsetof(struct sockaddr_un, sun_path)) {
|
||||
struct sockaddr_un *sun = (struct sockaddr_un *)ss;
|
||||
char *pe = (char *)sun + SO_MIN(sizeof * sun, slen);
|
||||
size_t plen;
|
||||
|
||||
while (pe > sun->sun_path && pe[-1] == '\0')
|
||||
--pe;
|
||||
|
Loading…
Reference in New Issue
Block a user