summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>2012-01-03 17:38:24 +0100
committerMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>2012-01-03 17:38:24 +0100
commited432f030e604f7b2fd4a79c2110d92b9cde7501 (patch)
treed430fc764b88519da48903ba45327fb33089627a /sm
parentRevert last change, add comment about link() return values. (diff)
downloadgnupg2-ed432f030e604f7b2fd4a79c2110d92b9cde7501.tar.xz
gnupg2-ed432f030e604f7b2fd4a79c2110d92b9cde7501.zip
Silence gcc warning.
* sm/call-dirmngr.c (get_cached_cert): Make sure buflen is initialized.
Diffstat (limited to 'sm')
-rw-r--r--sm/call-dirmngr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/call-dirmngr.c b/sm/call-dirmngr.c
index cdaa9dcfa..92f7a0e2c 100644
--- a/sm/call-dirmngr.c
+++ b/sm/call-dirmngr.c
@@ -816,7 +816,7 @@ get_cached_cert (assuan_context_t ctx,
char hexfpr[2*20+1];
struct membuf mb;
char *buf;
- size_t buflen;
+ size_t buflen = 0;
ksba_cert_t cert;
*r_cert = NULL;