aboutsummaryrefslogtreecommitdiffstats
path: root/g13/mount.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-01-05 14:10:03 +0000
committerWerner Koch <[email protected]>2015-01-05 14:15:37 +0000
commit9bf40849a9f86204e113712c4cc285f1ac16127a (patch)
tree23a82e91791a9508ece2dce303f3fa16e44b7c75 /g13/mount.c
parentgpg: Remove unused args from a function. (diff)
downloadgnupg-9bf40849a9f86204e113712c4cc285f1ac16127a.tar.gz
gnupg-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 <[email protected]>
Diffstat (limited to 'g13/mount.c')
-rw-r--r--g13/mount.c3
1 files changed, 2 insertions, 1 deletions
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;