From e617f183e36bb3f52af0c8e024c18728a9bb491e Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 30 Jun 2011 03:16:34 +0000 Subject: libsylph/socket.c: my_getaddrinfo(): removed redundant zero clear. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2921 ee746299-78ed-0310-b773-934348b2243d --- libsylph/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsylph') diff --git a/libsylph/socket.c b/libsylph/socket.c index d2b55c13..6005f3cf 100644 --- a/libsylph/socket.c +++ b/libsylph/socket.c @@ -941,7 +941,7 @@ static int my_getaddrinfo(const char *node, const char *service, } ai = g_malloc0(sizeof(struct addrinfo)); - paddr = g_malloc0(sizeof(struct sockaddr_in)); + paddr = g_malloc(sizeof(struct sockaddr_in)); memcpy(paddr, &addr, sizeof(struct sockaddr_in)); ai->ai_flags = 0; -- cgit v1.2.3