mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
sm,g13: Init local vars to avoid compiler warnings.
* sm/misc.c (transform_sigval): Init RSA_S_LEN. * g13/mount.c (read_keyblob): Init HEADERLEN. -- Not a bug but the compiler (gcc 4.9.1) can't detect that it is not used uninitialized. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
616e511f27
commit
9bf40849a9
@ -139,7 +139,8 @@ read_keyblob (const char *filename,
|
|||||||
{
|
{
|
||||||
gpg_error_t err;
|
gpg_error_t err;
|
||||||
estream_t fp = NULL;
|
estream_t fp = NULL;
|
||||||
size_t headerlen, msglen;
|
size_t headerlen = 0;
|
||||||
|
size_t msglen;
|
||||||
void *msg = NULL;
|
void *msg = NULL;
|
||||||
|
|
||||||
*r_enckeyblob = NULL;
|
*r_enckeyblob = NULL;
|
||||||
|
@ -112,7 +112,7 @@ transform_sigval (const unsigned char *sigval, size_t sigvallen, int mdalgo,
|
|||||||
int depth, last_depth1, last_depth2;
|
int depth, last_depth1, last_depth2;
|
||||||
int is_pubkey = 0;
|
int is_pubkey = 0;
|
||||||
const unsigned char *rsa_s = NULL;
|
const unsigned char *rsa_s = NULL;
|
||||||
size_t rsa_s_len;
|
size_t rsa_s_len = 0;
|
||||||
const char *oid;
|
const char *oid;
|
||||||
gcry_sexp_t sexp;
|
gcry_sexp_t sexp;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user