A number of small bug fixes, some motivated by compiler warnings.
[u/mdw/catacomb] / cc-kem.c
index 360977a..28fcd4b 100644 (file)
--- a/cc-kem.c
+++ b/cc-kem.c
@@ -502,6 +502,7 @@ k_found:;
   if (!ko->kf) {
     kd = k->k;
     key_incref(kd);
+    kp = 0;
   } else {
     kd = xmalloc(ko->kdsz);
     kp = key_fetchinit(ko->kf, 0, kd);