aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2025-11-20 05:28:03 +0000
committerNIIBE Yutaka <[email protected]>2025-11-20 05:28:03 +0000
commitcad79e542d8506942d5b20f544d465cbaf64fd75 (patch)
tree4970309f4a3ad6121f006237282699e7d56f9351 /agent/command.c
parentmisc: Validate the value on the use of strtol. (diff)
downloadgnupg-cad79e542d8506942d5b20f544d465cbaf64fd75.tar.gz
gnupg-cad79e542d8506942d5b20f544d465cbaf64fd75.zip
agent,common,dirmngr,tests: Silence warnings of a compiler.
* agent/command.c (cmd_keytocard): Initialize N. * common/ksba-io-support.c (bintoasc): Use GPGRT_ATTR_NONSTRING. * dirmngr/dns.c (dns_aaaa_arpa): Use GPGRT_ATTR_NONSTRING. (dns_sshfp_cmp0): Ditto. * tests/gpgscm/scheme.c (scheme_define): Initialize SSLOT. -- Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/command.c')
-rw-r--r--agent/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/command.c b/agent/command.c
index a50cbce5a..21c95203c 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -3418,7 +3418,7 @@ cmd_keytocard (assuan_context_t ctx, char *line)
timestamp = isotime2epoch (argv[3]);
if (argc > 4)
{
- size_t n;
+ size_t n = 0;
err = parse_hexstring (ctx, argv[4], &n);
if (err)