From 8f2c21001990ce022bb4ce1cd70c577210e19500 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Sun, 20 Sep 2009 15:57:00 +0000 Subject: [PATCH] Fix segfault in test for BSDs --- tests/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/dns.c b/tests/dns.c index 21745c7..3d21e4c 100644 --- a/tests/dns.c +++ b/tests/dns.c @@ -68,8 +68,8 @@ START_TEST(test_encode_query) struct encoder *enc; char *d; size_t len; + size_t enclen; int ret; - int enclen; enclen = sizeof(resolv); memset(&buf, 0, sizeof(buf));