]> granicus.if.org Git - libevent/commitdiff
test/regress_http: initialize "dns_base" to avoid reading trash
authorAzat Khuzhin <a3at.mail@gmail.com>
Tue, 18 Aug 2015 18:30:48 +0000 (21:30 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Tue, 18 Aug 2015 18:32:03 +0000 (21:32 +0300)
Even though it is very unlikely, but it will better to fix this.

test/regress_http.c

index 4a025c3c8ef67b556e42067f46b159521b0a0a23..21bf8152fac3fdd71cbc55579518b13b54939dca 100644 (file)
@@ -3459,7 +3459,7 @@ http_connection_retry_conn_address_test(void *arg)
 {
        struct basic_test_data *data = arg;
        ev_uint16_t portnum = 0;
-       struct evdns_base *dns_base;
+       struct evdns_base *dns_base = NULL;
        char address[64];
 
        tt_assert(regress_dnsserver(data->base, &portnum, search_table));