diff --git a/g13/mount.c b/g13/mount.c index fc640e0ee..a9203d11f 100644 --- a/g13/mount.c +++ b/g13/mount.c @@ -139,7 +139,8 @@ read_keyblob (const char *filename, { gpg_error_t err; estream_t fp = NULL; - size_t headerlen, msglen; + size_t headerlen = 0; + size_t msglen; void *msg = NULL; *r_enckeyblob = NULL; diff --git a/sm/misc.c b/sm/misc.c index ec9f97e02..39897f4e8 100644 --- a/sm/misc.c +++ b/sm/misc.c @@ -112,7 +112,7 @@ transform_sigval (const unsigned char *sigval, size_t sigvallen, int mdalgo, int depth, last_depth1, last_depth2; int is_pubkey = 0; const unsigned char *rsa_s = NULL; - size_t rsa_s_len; + size_t rsa_s_len = 0; const char *oid; gcry_sexp_t sexp;