aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2013-08-22 07:35:21 +0000
committerWerner Koch <[email protected]>2013-08-28 11:04:31 +0000
commit04e2c83f189cc56342e1be784bdc63761ccdb5bb (patch)
tree46d3ce1615585aa8dfbd2ac56b04c3050f8ba0b4 /agent/command-ssh.c
parentscd: fix parsing login-data DO. (diff)
downloadgnupg-04e2c83f189cc56342e1be784bdc63761ccdb5bb.tar.gz
gnupg-04e2c83f189cc56342e1be784bdc63761ccdb5bb.zip
agent: Fix two compiler warnings.
* agent/command.c (cmd_preset_passphrase, pinentry_loopback): Use %zu in format string. * scd/ccid-driver.c (ccid_get_atr): Ditto. * agent/command-ssh.c (stream_read_string): Init arg STRING_SIZE to avoid maybe_unitialized warning. -- Actually the first one might have been a problem on big endian machines. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--agent/command-ssh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c
index f378ade55..0ff70b534 100644
--- a/agent/command-ssh.c
+++ b/agent/command-ssh.c
@@ -487,6 +487,8 @@ stream_read_string (estream_t stream, unsigned int secure,
unsigned char *buffer = NULL;
u32 length = 0;
+ *string_size = 0;
+
/* Read string length. */
err = stream_read_uint32 (stream, &length);
if (err)