src/core/ngx_connection.c:1072: error: Uninitialized Value
  The value read from len was never initialized.

src/core/ngx_connection.c:1072:14: 
1070.     }
1071. 
1072.     s->len = ngx_sock_ntop(c->local_sockaddr, len, s->data, s->len, port);
                   ^
1073. 
1074.     return NGX_OK;

ngx_int_t
ngx_connection_local_sockaddr(ngx_connection_t *c, ngx_str_t *s,
    ngx_uint_t port)
{
    socklen_t             len;
    ngx_uint_t            addr;
    u_char                sa[NGX_SOCKADDRLEN];
    struct sockaddr_in   *sin;
#if (NGX_HAVE_INET6)
    ngx_uint_t            i;
    struct sockaddr_in6  *sin6;
#endif
    switch (c->local_sockaddr->sa_family) {
#if (NGX_HAVE_INET6)
    case AF_INET6:
        sin6 = (struct sockaddr_in6 *) c->local_sockaddr;
        for (addr = 0, i = 0; addr == 0 && i < 16; i++) {
            addr |= sin6->sin6_addr.s6_addr[i];
        }
        break;
#endif
    default:
        sin = (struct sockaddr_in *) c->local_sockaddr;
        addr = sin->sin_addr.s_addr;
        break;
    }
    if (addr == 0) {
        len = NGX_SOCKADDRLEN;
        if (getsockname(c->fd, (struct sockaddr *) &sa, &len) == -1) {
            ngx_connection_error(c, ngx_socket_errno, "getsockname() failed");
            return NGX_ERROR;
        }
        c->local_sockaddr = ngx_palloc(c->pool, len);
        if (c->local_sockaddr == NULL) {
            return NGX_ERROR;
        }
        ngx_memcpy(c->local_sockaddr, &sa, len);
    }
    if (s == NULL) {
        return NGX_OK;
    }
    s->len = ngx_sock_ntop(c->local_sockaddr, len, s->data, s->len, port);
    return NGX_OK;
}
['ngx_int_t\nngx_connection_local_sockaddr(ngx_connection_t *c, ngx_str_t *s,\n    ngx_uint_t port)\n{\n    socklen_t             len;\n    ngx_uint_t            addr;\n    u_char                sa[NGX_SOCKADDRLEN];\n    struct sockaddr_in   *sin;\n#if (NGX_HAVE_INET6)\n    ngx_uint_t            i;\n    struct sockaddr_in6  *sin6;\n#endif\n    switch (c->local_sockaddr->sa_family) {\n#if (NGX_HAVE_INET6)\n    case AF_INET6:\n        sin6 = (struct sockaddr_in6 *) c->local_sockaddr;\n        for (addr = 0, i = 0; addr == 0 && i < 16; i++) {\n            addr |= sin6->sin6_addr.s6_addr[i];\n        }\n        break;\n#endif\n    default:\n        sin = (struct sockaddr_in *) c->local_sockaddr;\n        addr = sin->sin_addr.s_addr;\n        break;\n    }\n    if (addr == 0) {\n        len = NGX_SOCKADDRLEN;\n        if (getsockname(c->fd, (struct sockaddr *) &sa, &len) == -1) {\n            ngx_connection_error(c, ngx_socket_errno, "getsockname() failed");\n            return NGX_ERROR;\n        }\n        c->local_sockaddr = ngx_palloc(c->pool, len);\n        if (c->local_sockaddr == NULL) {\n            return NGX_ERROR;\n        }\n        ngx_memcpy(c->local_sockaddr, &sa, len);\n    }\n    if (s == NULL) {\n        return NGX_OK;\n    }\n    s->len = ngx_sock_ntop(c->local_sockaddr, len, s->data, s->len, port);\n    return NGX_OK;\n}']