void *buffer, int size, int *err)
{
- struct hostent *he;
+ struct hostent *he = NULL;
*err = 0;
#if defined(HAVE_FUNC_GETHOSTBYNAME_R_6)
if (gethostbyname_r(hostname, h, (char*)buffer, size, &he, err))
int proto, struct hostent *h,
void *buffer, int size, int *err)
{
- struct hostent *he;
+ struct hostent *he = NULL;
*err = 0;
#if defined(HAVE_FUNC_GETHOSTBYNAME_R_6)
if (gethostbyaddr_r(addr_buf, buf_size, proto, h,
struct servent *wxGetservbyname_r(const char *port, const char *protocol,
struct servent *serv, void *buffer, int size)
{
- struct servent *se;
+ struct servent *se = NULL;
#if defined(HAVE_FUNC_GETSERVBYNAME_R_6)
if (getservbyname_r(port, protocol, serv, (char*)buffer, size, &se))
se = NULL;