From a30b7ada9064640e879d481608c7e543ebf2db52 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Tue, 17 Feb 2015 11:37:18 -0800 Subject: [PATCH] [v9_10] silence warning --- lib/dns/geoip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dns/geoip.c b/lib/dns/geoip.c index 0a96c59847..798499e543 100644 --- a/lib/dns/geoip.c +++ b/lib/dns/geoip.c @@ -166,10 +166,11 @@ set_state(unsigned int family, isc_uint32_t ipnum, const geoipv6_t *ipnum6, dns_geoip_subtype_t subtype, GeoIPRecord *record, GeoIPRegion *region, char *name, const char *text, int id) { - isc_result_t result; geoip_state_t *state = NULL; #ifdef ISC_PLATFORM_USETHREADS + isc_result_t result; + result = state_key_init(); if (result != ISC_R_SUCCESS) return (result);