summaryrefslogtreecommitdiffstats
path: root/sm/misc.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-01-05 15:10:03 +0100
committerWerner Koch <wk@gnupg.org>2015-01-05 15:15:37 +0100
commit9bf40849a9f86204e113712c4cc285f1ac16127a (patch)
tree23a82e91791a9508ece2dce303f3fa16e44b7c75 /sm/misc.c
parentgpg: Remove unused args from a function. (diff)
downloadgnupg2-9bf40849a9f86204e113712c4cc285f1ac16127a.tar.xz
gnupg2-9bf40849a9f86204e113712c4cc285f1ac16127a.zip
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>
Diffstat (limited to 'sm/misc.c')
-rw-r--r--sm/misc.c2
1 files changed, 1 insertions, 1 deletions
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;