From 4a154ed59298f7beb13eb28bd380fe864e869c30 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 8 Oct 2019 19:44:41 +0100 Subject: [PATCH] site: Move declaration/initialisation of `hash' We are going to want this a bit sooner. No functional change. Signed-off-by: Ian Jackson --- site.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site.c b/site.c index 23831c4..03d1e06 100644 --- a/site.c +++ b/site.c @@ -2232,6 +2232,7 @@ static list_t *site_apply(closure_t *self, struct cloc loc, dict_t *context, st->log=find_cl_if(dict,"log",CL_LOG,True,"site",loc); st->random=find_cl_if(dict,"random",CL_RANDOMSRC,True,"site",loc); + struct hash_if *hash=0; st->privkey=find_cl_if(dict,"local-key",CL_SIGPRIVKEY,True,"site",loc); st->addresses=dict_read_string_array(dict,"address",False,"site",loc,0); if (st->addresses) @@ -2243,7 +2244,6 @@ static list_t *site_apply(closure_t *self, struct cloc loc, dict_t *context, st->dh=find_cl_if(dict,"dh",CL_DH,True,"site",loc); - struct hash_if *hash=0; SETUP_SETHASH(st->privkey); SETUP_SETHASH(st->pubkey); -- 2.30.2