server/keymgmt.c (kh_init): Remove pointless setting of `kh->kf'.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 19 May 2018 19:36:10 +0000 (20:36 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 25 Jan 2019 12:10:32 +0000 (12:10 +0000)
It's statically initialized to be null.  The only reason it might not be
is because we already changed it.  Hmm... that gives me an idea.

server/keymgmt.c

index 05e0106..e181d0e 100644 (file)
@@ -303,8 +303,6 @@ static void kh_init(keyhalf *kh, const char *kr)
   kh->kr = kr;
   fwatch_init(&kh->w, kr);
   sym_create(&kh->tab);
-  kh->kf = 0;
-
   if (kh_reopen(kh)) exit(EXIT_FAILURE);
 }