summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2006-03-21 12:39:29 +0000
committerdelphij <delphij@FreeBSD.org>2006-03-21 12:39:29 +0000
commit53d6233f744cffc5f29606f3a746783c571f7766 (patch)
tree36d4b25dc5c4ef1e31f74632bdc7b38c01898b4e /lib/libc
parent95a983bc1696cbcb20dacd1b82dd6989c4e87a53 (diff)
downloadFreeBSD-src-53d6233f744cffc5f29606f3a746783c571f7766.zip
FreeBSD-src-53d6233f744cffc5f29606f3a746783c571f7766.tar.gz
When we are doing initialization against q, use its own size, not
the size of q2. This should be a no-op because q and q2 are of the same type. Submitted by: Alexey Dobriyan <adobriyan gmail com>
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/getaddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c
index 6e98fcb..9d7eb45 100644
--- a/lib/libc/net/getaddrinfo.c
+++ b/lib/libc/net/getaddrinfo.c
@@ -1920,7 +1920,7 @@ _dns_getaddrinfo(rv, cb_data, ap)
hostname = va_arg(ap, char *);
pai = va_arg(ap, const struct addrinfo *);
- memset(&q, 0, sizeof(q2));
+ memset(&q, 0, sizeof(q));
memset(&q2, 0, sizeof(q2));
memset(&sentinel, 0, sizeof(sentinel));
cur = &sentinel;
OpenPOWER on IntegriCloud