From 0a717f5d5135d6f6b348d7510957e6768c143b28 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 29 Oct 2015 16:25:07 +0100 Subject: [PATCH] Warning with older (less intelligent) compiles --- src/stub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stub.c b/src/stub.c index c37fb4711..7bc30c2d8 100644 --- a/src/stub.c +++ b/src/stub.c @@ -183,7 +183,7 @@ match_and_process_server_cookie( { _getdns_rr_iter rr_iter_storage, *rr_iter; uint8_t *pos; - uint16_t rdata_len, opt_code, opt_len; + uint16_t rdata_len, opt_code = 0, opt_len = 0; /* Search for the OPT RR (if any) */ for ( rr_iter = _getdns_rr_iter_init(&rr_iter_storage